You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use renv inside a GitHub Action. renv::restore() works on my local machine and also on a GitHub codespace but when I run it inside a GitHub Action I keep getting curl errors.
Here's an example of what I see - the packages that this error occurs on seems to change each time - though it does seem to always include [email protected] and it seems to have already successfully downloaded it earlier..
[TRUNCATED]
- Downloading DT from CRAN ... OK [1.4 Mb in 0.99s]
[TRUNCATED]
- Downloading memoise from CRAN ... OK [17.4 Kb in 0.48s]
- Downloading mime from CRAN ... OK [12.3 Kb in 0.3s]
- Downloading sass from CRAN ... ERROR [curl: (56) Recv failure: Connection timed out]
- Downloading sass from CRAN ... ERROR [curl: (22) The requested URL returned error: 404]
- Downloading bslib from CRAN ... ERROR [curl: (22) The requested URL returned error: 404]
- Downloading rmarkdown from CRAN ... ERROR [curl: (22) The requested URL returned error: 404]
- Downloading htmlwidgets from CRAN ... ERROR [curl: (22) The requested URL returned error: 404]
- Downloading DT from CRAN ... ERROR [curl: (22) The requested URL returned error: 404]
Warning: Warning: failed to find source for 'htmltools 0.5.6' in package repositories
Warning: Warning: error downloading 'http://cran.r-project.org/src/contrib/sass_0.4.7.tar.gz' [curl: (56) Recv failure: Connection timed out]
Warning: Warning: error downloading 'http://cran.r-project.org/src/contrib/Archive/sass/sass_0.4.7.tar.gz' [curl: (22) The requested URL returned error: 404]
Warning: Warning: error downloading 'http://cran.r-project.org/src/contrib/Archive/bslib/bslib_0.5.1.tar.gz' [curl: (22) The requested URL returned error: 404]
Warning: Warning: error downloading 'http://cran.r-project.org/src/contrib/Archive/rmarkdown/rmarkdown_2.25.tar.gz' [curl: (22) The requested URL returned error: 404]
Warning: Warning: error downloading 'http://cran.r-project.org/src/contrib/Archive/htmlwidgets/htmlwidgets_1.6.2.tar.gz' [curl: (22) The requested URL returned error: 404]
Warning: Warning: error downloading 'http://cran.r-project.org/src/contrib/sass_0.4.7.tar.gz' [curl: (56) Recv failure: Connection timed out]
Warning: Warning: error downloading 'http://cran.r-project.org/src/contrib/Archive/DT/DT_0.30.tar.gz' [curl: (22) The requested URL returned error: 404]
Error: Error: failed to retrieve package '[email protected]'
Execution halted
Traceback (most recent calls last):
8: renv::restore()
7: renv_restore_run_actions(project, diff, current, lockfile, rebuild)
6: retrieve(packages)
5: handler(package, renv_retrieve_impl(package))
4: renv_retrieve_impl(package)
3: renv_retrieve_repos(record)
2: stopf("failed to retrieve package '%s'", renv_record_format_remote(record))
1: stop(sprintf(fmt, ...), call. = call.)
Error: Process completed with exit code 1.
Here's my renv.lock (converted to .txt so I could upload to github) renv.lock.
I have tried including the following config settings in my .RProfile file which I'm confident is running before renv to increase the number of retries and timeout.
Based on the reported error, it seems most likely that CRAN was inaccessible for a short period of time: I don't think there's any explicit action required here?
I am trying to use
renv
inside a GitHub Action.renv::restore()
works on my local machine and also on a GitHub codespace but when I run it inside a GitHub Action I keep gettingcurl
errors.Here's an example of what I see - the packages that this error occurs on seems to change each time - though it does seem to always include
[email protected]
and it seems to have already successfully downloaded it earlier..Here's my github workflow
.yml
Here's my
renv.lock
(converted to.txt
so I could upload to github) renv.lock.I have tried including the following config settings in my
.RProfile
file which I'm confident is running beforerenv
to increase the number of retries and timeout.Any thoughts helpful! Sorry not quite sure how to do a reprex for this.
The text was updated successfully, but these errors were encountered: