Can not load package tcltk in R
21,510
This might be useful for those having the same issue on Linux (long discussion, skip to the end to get the final solution):
http://r.789695.n4.nabble.com/Where-is-the-tcltk-package-td3434915.html
Related videos on Youtube
Author by
Lily
Updated on June 14, 2020Comments
-
Lily almost 4 years
I am trying to do multiple imputation in R and have installed Amelia and tried to open AmeliaView but it said require tcltk package. I proceeded to install tcltk but error message pop out as follows. Could someone help me?
> AmeliaView() Loading required package: tcltk Loading Tcl/Tk interface ... 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/2.12/Resources/library/tcltk/libs/i386/tcltk.so': dlopen(/Library/Frameworks/R.framework/Versions/2.12/Resources/library/tcltk/libs/i386/tcltk.so, 10): Library not loaded: /usr/local/lib/libtcl8.5.dylib Referenced from: /Library/Frameworks/R.framework/Versions/2.12/Resources/library/tcltk/libs/i386/tcltk.so Reason: image not found Error in AmeliaView() : The package 'tcltk' is required > require(tcltk2) Loading required package: tcltk2 Loading required package: tcltk Loading Tcl/Tk interface ... 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/2.12/Resources/library/tcltk/libs/i386/tcltk.so': dlopen(/Library/Frameworks/R.framework/Versions/2.12/Resources/library/tcltk/libs/i386/tcltk.so, 10): Library not loaded: /usr/local/lib/libtcl8.5.dylib Referenced from: /Library/Frameworks/R.framework/Versions/2.12/Resources/library/tcltk/libs/i386/tcltk.so Reason: image not found Failed with error: ‘package 'tcltk' could not be loaded’
-
Joris Meys about 13 yearswhith those kind of errors it's useful if you mention the operating system and version.
-