Error installing packages on Github Actions

I am building a {distill} site on Github Actions and for some reason my packages are no longer installing during the build process. I am getting this error when it tries to install {dplyr}:

Error: Error: package or namespace load failed for ‘dplyr’ in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/Users/runner/work/_temp/Library/rlang/libs/':
  dlopen(/Users/runner/work/_temp/Library/rlang/libs/, 6): Library not loaded: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libR.dylib
  Referenced from: /Users/runner/work/_temp/Library/rlang/libs/
  Reason: image not found
Execution halted
Error: Process completed with exit code 1.

This one is a mystery to me. I have searched and found a few suggestions that worked for others, like installing XQuartz, but that did not change the outcome. Any advice is much appreciated!

Please include a link to the full actions log that is failing, what you have posted is not enough information to determine the issue.

Sorry, this is the log:

Ah, the error actually seems to be upstream of what you reported (Update build_site.yml · jhelvy/distillery@9e87d04 · GitHub)

install.packages() unfortunately has a bug when installing mixed source and binary packages, the order of installation is not always correct in this case. In this case it seems to be caused by a recent release of xfun to CRAN.

If you wait a day or two for the binary of xfun to be built this will automatically resolve itself.

Hi @jimhester , I'm looking at this again and it's still erroring in the same place. The source of the error is the same - a problem when installing {tinytex}, which looks like a dependency on {xfun}. I'm trying to understand why this is still happening as I have a similar build here where {tinytex} installs without issue. Any thoughts?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.