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/rlang.so':
dlopen(/Users/runner/work/_temp/Library/rlang/libs/rlang.so, 6): Library not loaded: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libR.dylib
Referenced from: /Users/runner/work/_temp/Library/rlang/libs/rlang.so
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!
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?