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

setup-renv fails with an error #747

Closed
harisonmg opened this issue Jul 13, 2023 · 4 comments
Closed

setup-renv fails with an error #747

harisonmg opened this issue Jul 13, 2023 · 4 comments
Labels
bug an unexpected problem or unintended behavior

Comments

@harisonmg
Copy link

Describe the bug
setup-renv fails with this error

Error: Error in eval(quote(*** : object '..version..' not found
Calls: source ... local -> eval.parent -> eval -> eval -> eval -> eval
Execution halted
Error: Process completed with exit code 1.

To Reproduce
Rerun any workflow that uses this action. Below are the logs of the failed action

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.17.3 --------------------------------------------------
* Downloading renv 0.17.3 ... OK
* Installing renv 0.17.3 ... Done!
* Successfully installed and loaded renv 0.17.3.
ℹ Using R 4.3.1 (lockfile was generated with R 4.2.3)
Retrieving 'https://packagemanager.posit.co/cran/__linux__/jammy/latest/src/contrib/renv_1.0.0.tar.gz' ...
	OK [downloaded 2.1 Mb in 0.31 seconds]
Installing renv [1.0.0] ...
	OK [installed binary in 0.45 seconds]
Moving renv [1.0.0] into the cache ...
	OK [moved to cache in 0.11 seconds]
* Installed 1 package in 1.9 seconds.
The following package(s) have been updated:

	renv [installed version 1.0.0 != loaded version 0.17.3]

Consider restarting the R session and loading the newly-installed packages.

ℹ Using R 4.3.1 (lockfile was generated with R 4.2.3)
Run cat("os-version=", sessionInfo()$running, "\n", file = Sys.getenv("GITHUB_OUTPUT"), sep = "", append = TRUE)
Error: Error in eval(quote(*** : object '..version..' not found
Calls: source ... local -> eval.parent -> eval -> eval -> eval -> eval
Execution halted
Error: Process completed with exit code 1.

Expected behavior
The action should run successfully

Additional context
{renv} recently released version 1.0.0. Could this be the source of problems?

@harisonmg harisonmg added the bug an unexpected problem or unintended behavior label Jul 13, 2023
@gaborcsardi
Copy link
Member

I think this is fixed in the dev version, to be released soon. You can try it by using r-lib/actions/setup-renv@v2-branch.

@harisonmg
Copy link
Author

Your solution works. Thank you @gaborcsardi

@gaborcsardi
Copy link
Member

Don't forget to switch it back in a couple of days, after v2 is updated.

@github-actions
Copy link

This issue has been automatically locked. If you believe you have found a related problem, please file a new issue and include a link to this issue

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants