[setup-r-dependencies] failed with `there is no package called ‘pak’`
Closed this issue · 3 comments
STOP
If you are debugging a failed build or have a question about GitHub Actions in
general do NOT open an issue here. Either post on the Actions sections of
the GitHub Community or the Posit Community forums.
Open an issue here only if you have a bug in one of the
custom R specific actions themselves.
Describe the bug
Install/update packages step produce a following error:
Error in library(pak, lib.loc = Sys.getenv("R_LIB_FOR_PAK")) :
there is no package called ‘pak’
pak cannot be found even though it had been successfully installed in one of the earlier steps:
# Installing packages --------------------------------------------------------
- Installing pak ... OK [installed binary and cached in 0.47s]
Successfully installed 1 package in 0.63 seconds.
Please note that renv.lock file is being used.
Please also note that this started to fail ~5 days ago whereas the last activity in the repo was 3 weeks ago. There must be some changes in some of the actions logic about a week ago.
https://github.com/pharmaverse/tealworkshop-phusecss2025/actions/workflows/docs.yaml
https://github.com/pharmaverse/tealworkshop-phusecss2025/commits/main/
The config used is standard one and it's available here:
https://github.com/pharmaverse/tealworkshop-phusecss2025/blob/main/.github/workflows/docs.yaml
This is a low priority item. I needed this webpage for the workshop and this had been already held.
To Reproduce
You MUST include a link to the full logs of the failed build. Bug reports which do not contain a link, or only contain a screenshot of the failed build will be closed.
Last build: https://github.com/pharmaverse/tealworkshop-phusecss2025/actions/runs/15373991020/job/43256698848
Expected behavior
A clear and concise description of what you expected to happen.
pak is installed and successfully used.
Last green job: https://github.com/pharmaverse/tealworkshop-phusecss2025/actions/runs/15272998673/job/42952722910
Additional context
Add any other context about the problem here.
none
Please use the setup-renv action for renv projects. setup-r-dependencies generally does not work for them.
Thank you! Switching to setup-renv does the job for me and the issue disappear
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