Is it possible to pass RENV_PATHS_LOCAL to the r-lib/actions/examples/bookdown.yml workflow so that I can restore a local package when trying to reproduce the report using github actions?
Otherwise I am hitting this error because my .Renviron with the RENV_PATHS_LOCAL field is not being passed:
Error: Error: failed to retrieve package 'localPackage'
I'm pretty sure I set the env vars globally as well.
I ran into the error failed to retrieve package 'localPackage'when it got to the r-lib/actions/setup-renv@v1 step because renv does not correctly restore localPackage from RENV_PATHS_LOCAL, set in my local .Renviron. So, my question is whether we are able to pass this environment variable to the workflow. I've tried the following 2 modifications to no avail:
Passing the environment using RENV_PATHS_LOCAL as env seems ok.
However, where you package is available for Github action to install it ? The server in which the action will be running needs to have access to the package. ~/Packages means a folder on the server that will build the book.
If your package is only locally install on your computer, the book won't be able to be built on another environment without this package.
So before trying to help you further, how did you make the package available to GHA ? Thanks!