-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in utils::download.file(url, path, method = download_method(), quiet = quiet, : cannot open URL #102
Comments
Hello, I run my code with devtools, still the error occured, do you know how to solve this? Thank you! |
@zqcrystal325, have you tried updating R and all packages? |
Yes, I already updated my R and packages. |
👍 |
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. |
for me this worked on Windows 10
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:
|
error: Failed to install 'unknown package' from GitHub:
|
thanks,I worked! |
this works! |
This reverts commit 0f0d78d.
For me on Windows 10 the wininet worked! |
This worked for me. Windows 11 |
Thanks this works well |
for me this worked on Windows 11 |
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:
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 |
I am having this problem on Mac OS 14.5 RStudio 2024.04.1 |
Might work with devtools intead of remotes (r-lib/remotes#130).
The text was updated successfully, but these errors were encountered: