container-template
container-template copied to clipboard
potential bug in renv config options for r-lib/renv gh-action
When the auto-snapshot config option is TRUE, job succeeds but fails to install any package other than renv
causing everything downstream to break. Gives a warning about yaml
not being installed.
Setting the auto-snapshot option to FALSE resolves the issue.
Run r-lib/actions/setup-renv@v2
Run echo "RENV_PATHS_ROOT=/home/runner/work/_temp/renv" >> $GITHUB_ENV
Run install.packages("renv")
# Bootstrapping renv 0.1[5](https://github.com/ecohealthalliance/container-template/actions/runs/4058597470/jobs/6985707023#step:6:6).5 --------------------------------------------------
* Downloading renv 0.15.5 ... OK
* Installing renv 0.15.5 ... Done!
* Successfully installed and loaded renv 0.15.5.
Retrieving 'https://packagemanager.rstudio.com/all/__linux__/focal/latest/src/contrib/renv_0.16.0.tar.gz' ...
OK [downloaded 1.[8](https://github.com/ecohealthalliance/container-template/actions/runs/4058597470/jobs/6985707023#step:6:10) Mb in 0.7 secs]
Installing renv [0.16.0] ...
OK [installed binary]
Moving renv [0.16.0] into the cache ...
OK [moved to cache in 23 milliseconds]
The following package(s) have been updated:
renv [installed version 0.16.0 != loaded version 0.[15](https://github.com/ecohealthalliance/container-template/actions/runs/4058597470/jobs/6985707023#step:6:18).5]
Consider restarting the R session and loading the newly-installed packages.
warning messages from top-level task callback '2'
* Automatic snapshot has updated '/__w/container-template/container-template/renv.lock'.
Warning message:
The 'yaml' package is required to parse dependencies within R Markdown files.
Consider installing it with `install.packages("yaml")`.