I am attempting to do the tutortial “Getting started with imager”, but the very first instruction library(imager)
generates a long error message, with only the first part shown below
Error: package or namespace load failed for ‘imager’ in dyn.load(file, DLLpath = DLLpath, …):
unable to load shared object ‘/Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/imager/libs/imager.so’:
dlopen(/Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/imager/libs/imager.so, 0x0006): Library not loaded: /opt/X11/lib/libX11.6.dylib
My versions of R and RStudio are up to date, as is my Mac.
Help will be greatly appreciated. Thank you.