Reputation: 11
I have R 2.14 installed on a Mac OS X 10.7.2 (Lion).
I noticed that when I try to use the sqldf package, R hangs. I tried the fix as suggested by the sqldf help, which is to execute:
options(gsubfn.engine = "R")
prior to loading the sqldf package. This does not work. I installed the tcltk-8.5.5-x11.dmg package but still no change.
I tried to install the XQuartz software (xquartz.macosforge.org/). Despite this, R still hangs when sqldf is used or when loading the tcltk package.
Does anyone have suggestions for this problem?
Upvotes: 1
Views: 1763
Reputation: 263342
You haven't given us the results of sessionInfo() or your code or any error messages, ... but you should. If you haven't yet done so, then require sqldf (which should load the dependency gsubfn) packages:
require(sqldf) # just installing is not enough
a1s <- sqldf("select * from warpbreaks limit 6")
Loading required package: tcltk
Loading Tcl/Tk interface ... done
> a1s
breaks wool tension
1 26 A L
2 30 A L
3 54 A L
4 25 A L
5 70 A L
6 52 A L
It does take some time to accomplish that tcltk-loading but it did happen in about half a minute.
Ah, I suspect I see the problem: your version 2.14.0 (2011-10-31). You probably need to get a more recent version of R. Mine is 2.14.0 Patched (2011-11-13 r57650). There was a NAMESPACE issue with that version of R for Macs and it was fixed in a few days by Simon Urbanek, and the fix reported on both the R-help and MAC_SIG mailing lists.
Upvotes: 2