You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Install citeproc instead of pandoc-citeproc when latter required #755
We are having an issue where one of our hard dependencies requires pandoc-citeproc as a system dependency but it is superseded by citeproc, so our GitHub Actions fail intermittently. See an example. We have been discussing it in epiforecasts/EpiNow2#1035 and it seems one potential solution would be to fix it from your end.
I also had this problem. The easiest quick fix for this is to switch that run to use an ubuntu-22.04 runner because pandoc-citeproc is still available in the Jammy archives but it's not in the Noble archives.
What confuses me is why this error doesn't occur on the R release runs using ubuntu-latest (Noble), so maybe there is some pak/pkgdepends/sysreqs bug related to R devel??
Interestingly PPPM does know about the difference in system requirements as does pak::sysreqs().
The problem is that pak failed to download the system requirements mapping in your workflow, so it used the mapping that come with the package and these are older:
! Failed to update system requirement mappings, will use cached mappings.
I got this to work using options() before my setup-r-dependencies step.
- name: Set pak optionsshell: bashrun: echo 'options(pkg.sysreqs_db_update_timeout = as.difftime(59, units = "secs"))' >> ~/.Rprofile
However, when I tried to set this using the environment variable say PKG_SYSREQS_DB_UPDATE_TIMEOUT=30s pak and pkgdepends seem to fall over with the following error message:
I have been frequently experiencing this error for months on many of my workflows. Is there a planned fix for this (apart from switching to older versions of ubuntu or other workarounds)?
I have not tried the workaround. I was hoping that the issue would eventually be fixed and a workaround wouldn't be needed. However, if I'll need to use a workaround for the long-term, that would be helpful to know. Often it will resolve itself just by re-running the same workflow (it errors out sporadically--it errors out only sometimes and not every time, for some reason). In case it's still helpful to see a recent failure. Here is one:
Activity
remlapmot commentedon Mar 14, 2025
(I'm just a user)
I also had this problem. The easiest quick fix for this is to switch that run to use an
ubuntu-22.04runner becausepandoc-citeprocis still available in the Jammy archives but it's not in the Noble archives.What confuses me is why this error doesn't occur on the R
releaseruns usingubuntu-latest(Noble), so maybe there is some pak/pkgdepends/sysreqs bug related to Rdevel??Interestingly PPPM does know about the difference in system requirements as does
pak::sysreqs().https://packagemanager.posit.co/client/#/repos/all/packages/loo/overview?search=loo&distribution=ubuntu-24.04
Created on 2025-03-14 with reprex v2.1.1
jamesmbaazam commentedon Mar 14, 2025
@remlapmot Thanks so much for chipping in.
We have other workflows that run on various latest Ubuntu releases. See for example the
R CMD CHECKworkflow runners in https://github.com/epiforecasts/EpiNow2/blob/main/.github/workflows/R-CMD-check.yaml#L36-L41.gaborcsardi commentedon Mar 15, 2025
This is already fixed in https://github.com/rstudio/r-system-requirements/blob/main/rules/pandoc-citeproc.json#L10
The problem is that pak failed to download the system requirements mapping in your workflow, so it used the mapping that come with the package and these are older:
https://github.com/epiforecasts/EpiNow2/actions/runs/13817915620/job/38655834925#step:5:211
As a workaround you can set the
PKG_SYSREQS_DB_UPDATE_TIMEOUTenv var (cf. https://pak.r-lib.org/reference/pak-config.html) to a larger value than the current default which is 5 seconds.remlapmot commentedon Mar 16, 2025
Oh brilliant - thanks.
remlapmot commentedon Mar 17, 2025
I got this to work using
options()before mysetup-r-dependenciesstep.However, when I tried to set this using the environment variable say
PKG_SYSREQS_DB_UPDATE_TIMEOUT=30spak and pkgdepends seem to fall over with the following error message:Created on 2025-03-17 with reprex v2.1.1
And the same happens for
PKG_METADATA_UPDATE_AFTERCreated on 2025-03-17 with reprex v2.1.1
Is it possible there's a bug in pkgdepends parsing these environment variables? Or maybe I have used the wrong syntax.
gaborcsardi commentedon Mar 17, 2025
Try without the
ssuffix.remlapmot commentedon Mar 17, 2025
Unfortunately, they both still seem to fail
Created on 2025-03-17 with reprex v2.1.1
Created on 2025-03-17 with reprex v2.1.1
And if I enclose in quotes
Created on 2025-03-17 with reprex v2.1.1
Created on 2025-03-17 with reprex v2.1.1
Workaround for r-lib/pak#755
Workaround for r-lib/pak#755
katrinabrock commentedon Apr 15, 2025
Hey, I'm also getting the same error:
When setting
PKG_METADATA_UPDATE_AFTERto 30.Example here: https://github.com/stan-dev/cmdstanr/actions/runs/14465261844/job/40566077370#step:8:197
katrinabrock commentedon Apr 15, 2025
Potential fix (to error in workaround) here: r-lib/pkgdepends#442
isaactpetersen commentedon Apr 25, 2025
I have been frequently experiencing this error for months on many of my workflows. Is there a planned fix for this (apart from switching to older versions of ubuntu or other workarounds)?
gaborcsardi commentedon Apr 25, 2025
Have you tried the workaround at the beginning of #755 (comment)?
gaborcsardi commentedon Apr 25, 2025
Also, can you link to a recent failure?
isaactpetersen commentedon Apr 25, 2025
I have not tried the workaround. I was hoping that the issue would eventually be fixed and a workaround wouldn't be needed. However, if I'll need to use a workaround for the long-term, that would be helpful to know. Often it will resolve itself just by re-running the same workflow (it errors out sporadically--it errors out only sometimes and not every time, for some reason). In case it's still helpful to see a recent failure. Here is one:
https://github.com/isaactpetersen/Fantasy-Football-Analytics-Textbook/actions/runs/14663387810/job/41152585226
Thanks very much for your help with this.
Merge pull request #1077 from katrinabrock/workaround-pak-755