-
Notifications
You must be signed in to change notification settings - Fork 47
TCLTK Issues
JWiley edited this page Nov 20, 2014
·
1 revision
MplusAutomation
requires the tcltk
package to work. On Macs, this requires an installation of X Server (XQuartz or X11). If you get an error along these lines:
Error : .onLoad failed in loadNamespace() for 'tcltk', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object
'/Library/Frameworks/R.framework/Versions/3.1/Resources/library/tcltk/libs/tcltk.so':
dlopen(/Library/Frameworks/R.framework/Versions/3.1/Resources/library/tcltk/libs/tcltk.so, 10): Library not
loaded: /opt/X11/lib/libX11.6.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/3.1/Resources/library/tcltk/libs/tcltk.so
Reason: image not found
Error: package or namespace load failed for ‘MplusAutomation’
This is a good indicator that the issue is not with MplusAutomation
and instead has to do with tcltk
and XQuartz/X11.
If you have this error on a Mac, you can try installing XQuartz or X11 app. If you have that installed, in a clean R
session try this:
library(tcltk)
If the tcltk
package cannot load successfuly, you will not be able to load MplusAutomation
. You need to keep debugging until tcltk
loads correctly.
There are a number of pages with suggestions, including: