Open maurolepore opened 6 years ago
Hello, I run my code with devtools, still the error occured, do you know how to solve this? Thank you! devtools::install_github("xia-lab/MetaboAnalystR") Downloading GitHub repo xia-lab/MetaboAnalystR@master Error in utils::download.file(url, path, method = download_method(), quiet = quiet, : cannot open URL 'https://api.github.com/repos/xia-lab/MetaboAnalystR/tarball/master'
@zqcrystal325, have you tried updating R and all packages?
Yes, I already updated my R and packages.
👍 Unfortunately I won't be able to help. I suggest you follow up at https://github.com/r-lib/remotes/issues/130 or ask in this friendly forum: https://community.rstudio.com/
Thank you for trying to help. I appreciate!
Sorry, anybody solves this question, I also came across the same problem recently. Looking for help.
I found this solution works for me. Maybe because weird thing in Windows. https://github.com/r-lib/remotes/issues/130#issuecomment-423830669
for me this worked on Windows 10
options(download.file.method = "wininet")
https://support.rstudio.com/hc/en-us/articles/206827897-Secure-Package-Downloads-for-R
On Windows 10, wininet didn't fix but tried this and it worked:
options(download.file.method = "libcurl")
error: Failed to install 'unknown package' from GitHub: schannel: failed to receive handshake, SSL/TLS connection failed
library(LCTpackage) Error in library(LCTpackage) : don't esist the package name of ‘LCTpackage’ help!how can I solve the question? below is my code library(devtools) install_github("MattisvdBergh/LCT") library(LCTpackage)
for me this worked on Windows 10
options(download.file.method = "wininet")
https://support.rstudio.com/hc/en-us/articles/206827897-Secure-Package-Downloads-for-R
thanks,I worked!
for me this worked on Windows 10
options(download.file.method = "wininet")
https://support.rstudio.com/hc/en-us/articles/206827897-Secure-Package-Downloads-for-R
this works! Thank you
For me on Windows 10 the wininet worked!
for me this worked on Windows 10
options(download.file.method = "wininet")
https://support.rstudio.com/hc/en-us/articles/206827897-Secure-Package-Downloads-for-Rthis works! Thank you
This worked for me. Windows 11
for me this worked on Windows 10
options(download.file.method = "wininet")
https://support.rstudio.com/hc/en-us/articles/206827897-Secure-Package-Downloads-for-R
Thanks this works well
for me this worked on Windows 11 options(download.file.method = "wininet") Thanks!
Looking for solutions to my problem, given that the error just showed "failed" I landed here. Looking at the documentation of R's utils I realised that the default timeout was too short (60 seconds) for the repo I was trying to install. Without changing the download method, I just increased the timeout option as follows:
options(timeout = max(300, getOption("timeout")))
Basically the error is very little informative. There should be, in my case at least, a timeout mention.
as a note, I tried options(timeout = 600000000) ### set this to avoid timeout error this works
I am having this problem on Mac OS 14.5 RStudio 2024.04.1
Might work with devtools intead of remotes (https://github.com/r-lib/remotes/issues/130).