[R-SIG-Mac] problem installing packages from terminal

stefano iacus stefano.iacus at unimi.it
Sat Jun 4 22:31:19 CEST 2005


On 04/giu/05, at 20:18, Federico Calboli wrote:


> Hi All,
>
> I tried to install Hmisc from source, but I had errors due to  
> permission issues (I enabled root form my box). I tried to install  
> from the terminal after su-ing to root, but I get the following:
>
> > install.packages("locfit")
> --- Please select a CRAN mirror for use in this session ---
> Loading Tcl/Tk interface ... Error in fun(...) : no display name  
> and no $DISPLAY environment variable
> Error: .onLoad failed in 'loadNamespace' for 'tcltk'
>
>

the binaries of R for Mac OS X assumes X11 tcltk. You need to start  
the X11 server and either set the DISPLAY var to :0 if you use R from  
the command line. R.app sets the DISPLAY var for you.

Unless you build an aqua version of the tcltk R package (i.e. you  
configure R to use Aqua TclTk headers) you always need to have a X11  
window server running (like on Linux, I would say).

stefano



> The same command in Debian Linux opens a tcl/tk widget... How can I  
> install stuff from the terminal? I'd rather not log out and log in  
> again as root to install stuff that needs g77... (I did for Hmisc,  
> and worked like a charm). BTW, I installed all the .dmg packages  
> that were bundled with R.app.
>
> Cheers,
>
> Federico
>
>
> Federico C. F. Calboli
> Department of Epidemiology and Public Health
> Imperial College, St. Mary's Campus
> Norfolk Place, London W2 1PG
>
> Tel +44 (0)20 75941602   Fax +44 (0)20 75943193
>
> f.calboli [.a.t] imperial.ac.uk
> f.calboli [.a.t] gmail.com
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>
>



More information about the R-SIG-Mac mailing list