Rcmdr error: .onLoad error in loadNamespace () for 'tcltk'
I have no idea what I am doing, but I need to use R and Rcmdr for my statistics class. I am running OS X 10.7.5 using 3.1.2 for R.
I downloaded R.
install.packages("Rcmdr")
We chose a mirror, downloaded all the packages. Then I typed
library(Rcmdr)
And got this error:
Loading required package: splines
Loading required package: RcmdrMisc
Loading required package: car
Loading required package: sandwich
Error : .onLoad failed in loadNamespace() for 'tcltk', details:
call: system2("otool", c("-L", shQuote(DLL)), stdout = TRUE)
error: error in running command
Error: package or namespace load failed for ‘Rcmdr’
sh: otool: command not found
When I do this:
capabilities("tcltk")
# [1] TRUE
Did I do something wrong?
+3
source to share
1 answer
The R developers tried to do a workaround for R without providing a helpful error message when Tcl / Tk was not fully supported on the Mac. It seems like R 3.1.2 depends on Xtools otool for this. However, you can download a fixed version of R from http://r.research.att.com/ to remove this error.
+1
source to share