[R] Using R commander within R Studio (Mac)

John Fox jfox at mcmaster.ca
Mon Apr 15 17:01:58 CEST 2013

Dear Helene,

I don't think that your problem has anything to do with RStudio. I suspect that you haven't installed Tcl/Tk for X-Windows on your Mac, as is required by the tcltk package for versions of R on the Mac prior to 3.0.0. Please read the Rcmdr installation instructions at <http://socserv.socsci.mcmaster.ca/jfox/Misc/Rcmdr/installation-notes.html> for detailed information (and see in particular the link to "Mac OS X installation notes for the R Commander under older versions of R").

That said, I suggest that upgrade to R 3.0.0. You should also know that while the Rcmdr runs under RStudio, there are some problems, particularly with the RStudio graphics device.

I hope this helps,

John Fox
Sen. William McMaster Prof. of Social Statistics
Department of Sociology
McMaster University
Hamilton, Ontario, Canada
On Mon, 15 Apr 2013 10:19:24 -0400
 h moore <helene.moore at ryerson.ca> wrote:
> Hi.
> I am a R studio user and would like to use RCommander within R studio. Each
> time I try to install and use Rcommander, I see the following message:
> 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.15/Resources/library/tcltk/libs/x86_64/tcltk.so':
> dlopen(/Library/Frameworks/R.framework/Versions/2.15/Resources/library/tcltk/libs/x86_64/tcltk.so,
> 10): Library not loaded: /usr/local/lib/libtcl8.5.dylib
>   Referenced from:
> /Library/Frameworks/R.framework/Versions/2.15/Resources/library/tcltk/libs/x86_64/tcltk.so
>   Reason: image not found
> In addition: Warning message:
> package ‘Rcmdr’ was built under R version 2.15.3
> Error: package/namespace load failed for ‘Rcmdr’
> I went to get X11 and installed it as I believed this was the problem, but
> I get the same message.
> Would anyone get me some clues on what is going on?
> 	[[alternative HTML version deleted]]

More information about the R-help mailing list