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

potential bug in renv config options for r-lib/renv gh-action #26

Open
collinschwantes opened this issue Feb 1, 2023 · 0 comments
Open

Comments

@collinschwantes
Copy link
Collaborator

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")`.
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

1 participant