[R] Newbie Q: Help with loading libraries in Mac OS X

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Thu Oct 3 11:08:00 CEST 2002


Ali Al-Timimi <aaltimim at hotmail.com> writes:

> I am trying to load two libraries (mclust and tcltk) in Mac OS X (10.1.5).
> My R version is 1.5.1
> 
> I have tried both the Carbon version and the Darwin command line version =,
> but I get the following errors:
....
> > library(tcltk)
> Error in firstlib(which.lib.loc, package) :
>         no display name and no $DISPLAY environment variable
> Error in library(tcltk) : .First.lib failed

You need to have an X11 server running for tcltk to work. (Currently,
at least. There are native Mac Tcl/Tk versions but to my knowledge
that's not what the tcltk package links against.) Jan de Leeuw will
know the details, and I believe he also wrote them down somewhere.


> Now when I try using the install.packages(), I get the following:
...
> Error in unique(pkgs) : Object "tcltk" not found
> In addition: Warning message:
> argument `lib' is missing: using /usr/local/lib/R/library in:
> install.packages(tcltk)

Yes. These are base packages and not available separately

> IN THE CARBON VERSION:
> 
> > library(tcltk)
> Error in library.dynam("tcltk", pkg, lib) :
>     dynamic library `tcltk' not found
> Error in library(tcltk) : .First.lib failed

Tcl/Tk is not supported under Carbon.

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list