Skip to content
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

renv fails to restore package despite link working #899

Closed
paupaiz opened this issue Dec 18, 2021 · 3 comments
Closed

renv fails to restore package despite link working #899

paupaiz opened this issue Dec 18, 2021 · 3 comments

Comments

@paupaiz
Copy link

paupaiz commented Dec 18, 2021

I can successfully download package from the first link but renv fails. I suspect it is a time out error.
Screen Shot 2021-12-17 at 11 10 09 PM

@paupaiz
Copy link
Author

paupaiz commented Dec 18, 2021

confirmed with another package:
URL 'https://cran.rstudio.com/src/contrib/mgcv_1.8-38.tar.gz': Timeout of 60 seconds was reached
Is there any way to change the timeout renv takes to install a package?

@kevinushey
Copy link
Collaborator

Are you working somewhere with poor internet connectivity? I can't think of any other reason why package installation would intermittently fail (and it seems unlikely that it could depend on the particular package being installed).

See renv.config.connect.timeout in https://rstudio.github.io/renv/reference/config.html if you want to tweak timeout + retries.

@paupaiz
Copy link
Author

paupaiz commented Dec 29, 2021

Poor internet connectivity might be the issue. Is there a way to check I modified renv.config.connect.timeout and renv.config.connect.retry correctly? I tried changing it to 40L but haven't been able to restore successfully. ' So I am still getting the Timeout of 60 seconds was reached. Any idea how to modify this?

Edit: To check option use: getOption("renv.config.connect.timeout")

options(timeout = 300) should solve the issue!

@hadley hadley closed this as completed Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants