cem
cem copied to clipboard
library (cem) won't load
I am unable to load library(cem) because I keep getting the following error.
ibrary(cem) Loading required package: tcltk xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun Error: package or namespace load failed for ‘tcltk’: .onLoad failed in loadNamespace() for 'tcltk', details: call: dyn.load(file, DLLpath = DLLpath, ...) error: unable to load shared object '/Library/Frameworks/R.framework/Versions/4.1/Resources/library/tcltk/libs/tcltk.so': dlopen(/Library/Frameworks/R.framework/Versions/4.1/Resources/library/tcltk/libs/tcltk.so, 10): Library not loaded: /opt/X11/lib/libX11.6.dylib Referenced from: /Library/Frameworks/R.framework/Versions/4.1/Resources/library/tcltk/libs/tcltk.so Reason: image not found Error: package ‘tcltk’ could not be loaded In addition: Warning message: In system2("/usr/bin/otool", c("-L", shQuote(DSO)), stdout = TRUE) : running command ''/usr/bin/otool' -L '/Library/Frameworks/R.framework/Resources/library/tcltk/libs//tcltk.so'' had status 1
version _
platform x86_64-apple-darwin17.0
arch x86_64
os darwin17.0
system x86_64, darwin17.0
status
major 4
minor 1.2
year 2021
month 11
day 01
svn rev 81115
language R
version.string R version 4.1.2 (2021-11-01) nickname Bird Hippie
capabilities("tcltk") tcltk TRUE
I have looked at suggested fixes online. My R version is below. I have checked to make sure my libpaths are the same between R studio console and terminal. I am new to R and I am not sure what else I can do to fix this issue. Thanks in advance for the assistance.