How to specify system requirements for r-universe builds #519
-
Currently, I'm working on a package that uses static libraries: https://github.com/pepijn-devries/openmpt Therefore, it has system requirements ensuring that the libraries are available on the machine it runs on. I've included the requirements here: https://github.com/rstudio/r-system-requirements This will ensure that the rhub workflow on github will succefully build the package on Linux machines. However, when setting the package up for r-universe, the build fails (https://pepijn-devries.r-universe.dev/builds). This is because the system requirements are not installed. Does anyone have know how to set this up correctly? Many thanks for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 9 replies
-
It is explained here: https://docs.r-universe.dev/publish/debug-build.html#how-to-request-additional-third-party-system-requirements If it is in r-system-requirements it should work. I'll have a look. |
Beta Was this translation helpful? Give feedback.
-
Hmm if I run |
Beta Was this translation helpful? Give feedback.
-
It should work now, I switched the system dependency resolver to pak: r-universe-org/build-source@1554177 However this is still tentative because we had some troubles in the past with |
Beta Was this translation helpful? Give feedback.
-
Ugh we may have to revert, |
Beta Was this translation helpful? Give feedback.
-
Trying this workaround r-universe-org/build-source@d2a1418 |
Beta Was this translation helpful? Give feedback.
It should work now, I switched the system dependency resolver to pak: r-universe-org/build-source@1554177
However this is still tentative because we had some troubles in the past with
pak
hanging, so if that happens again we may need to find another solution.