r-lib / pak

A fresh approach to package installation
https://pak.r-lib.org
639 stars 56 forks source link

Installing package fails #624

Closed alethor closed 1 month ago

alethor commented 1 month ago

Since yesterday several of my projects pipelines have started failing and after looking around I decided to open an issue here. Looking through the job logs I can't see any changes in versions that might explain this issue.

I created a public example repo to reproduce the error here: https://gitlab.com/aleth/test-pipeline-error/-/jobs/6771023341

Here is a direct link to the job that fails: https://gitlab.com/aleth/test-pipeline-error/-/blob/main/test-package.yml?ref_type=heads

gaborcsardi commented 1 month ago

This is https://github.com/r-lib/pak/issues/623, see there for a workaround.

alethor commented 1 month ago

I get a similar error even when using the workaround: https://gitlab.com/aleth/test-pipeline-error/-/jobs/6772208324

gaborcsardi commented 1 month ago

Running

Rscript -e 'options(repos = c(PPM = "https://packagemanager.posit.co/cran/__linux__/jammy/latest"))'

will not set that option for future R sessions.

gaborcsardi commented 1 month ago

Reopened by mistake, sorry for the noise.