I am using the standard R CMD CHECK template, and it has worked without any issues for all my other repositories. But it seems to fail for one my repos with the following error:
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/Users/runner/work/_temp/Library/imager/libs/imager.so':
dlopen(/Users/runner/work/_temp/Library/imager/libs/imager.so, 6): Library not loaded: /opt/X11/lib/libX11.6.dylib
Referenced from: /Users/runner/work/_temp/Library/imager/libs/imager.so
Reason: image not found
Calls: <Anonymous> ... asNamespace -> loadNamespace -> library.dynam -> dyn.load
Execution halted