I am trying to install a package (gg3D) from GitHub in Rstudio. I was unable to install it using
devtools::install_github("AckerDWM/gg3D")
(Error: Failed to install 'gg3D' from GitHub). I tried changing the download method (curl
, libcurl
, etc.) but to no avail. Then I decided to download the source file and try to install it manually. Downloading the file did not work either:
source_URL <- "http://github.com/repos/AckerDWM/gg3D/archive/master.zip"
utils::download.file(source_URL, destfile = "tmp.zip")
This is when I get the error: InternetOpenURL failed: 'An error occurred in the secure channel support'
I believe this is a firewall/proxy issue (I have no problem downloading this on another computer with similar specs).
In case it's helpful, I'm running R version 3.6.1 on Windows 7.
Focusing solely on the downloading error, what I have tried:
- Changing the download.file
method
(which iswininet
by default), e.g.utils::download.file(source_URL, destfile = "tmp.zip", method = "libcurl")
returns asHTTP status was '404 Not Found'
error;utils::download.file(source_URL, destfile = "tmp.zip", method = "curl")
returns'curl' call had nonzero exit status
;- As above for
method = "wget"
.
- On the RStudio menu, Tools > Global Options... > Packages > and unchecking the box “Use secure download method for HTTP”. Has no effect.
setInternet2(use = FALSE)
(R warns that this is defunct).- Trying both
http
andhttps
.
These proposed solutions came from the following linked SO articles (but they did not work for me):
- R - when trying to install package: InternetOpenUrl failed
- Unable to install packages in latest version of RStudio and R Version.3.1.1
- Download.file fails in RStudio
Similar to (no solutions):