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

GitHub Action fails when using development version of renv (1.0.5.9000) #1870

Closed
jabenninghoff opened this issue Apr 8, 2024 · 2 comments
Closed

Comments

@jabenninghoff
Copy link

jabenninghoff commented Apr 8, 2024

To resolve #1869, I upgraded to the development version of renv (1.0.5.9000). Some GitHub Actions using renv are now failing with an error:

2024-04-08T16:38:43.0699010Z Error in heredoc("\n      renv %1$s was loaded from project library, but this project is configured to use renv %2$s.\n      - Use `renv::record(\"%3$s\")` to record renv %1$s in the lockfile.\n      - Use `renv::restore(packages = \"renv\")` to install renv %2$s into the project library.\n    ") : 
2024-04-08T16:38:43.0784300Z   could not find function "heredoc"
2024-04-08T16:38:43.0788230Z Calls: source ... renv_bootstrap_load -> renv_bootstrap_validate_version
2024-04-08T16:38:43.0789610Z Execution halted
2024-04-08T16:38:43.0813430Z ##[error]Process completed with exit code 1.

(see jabenninghoff/rdev#197 for full details)

This appears to be occurring because renv is not loaded when renv_bootstrap_validate_version() is called from renv/activate.R. I was unable to reproduce the issue locally, but it is reliably failing for my missing-deps.yaml and lint.yaml actions.

@jabenninghoff
Copy link
Author

Looking through the logs, it seems that calling renv::install() seems to trigger the issue. Running install() is unexpectedly installing renv (and knitr) even though both are already installed.

@jabenninghoff
Copy link
Author

After additional research, it appears that upgrading packages is the intended behavior. Closing in favor of #1871.

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