[R] Tcltk package

Peter Dalgaard p.dalgaard at biostat.ku.dk
Tue Aug 1 17:50:17 CEST 2006


John McHenry <john_d_mchenry at yahoo.com> writes:

> Hi WizaRds,
> 
> I ran into trouble trying to install the "debug" package, which requires TCL/TK support. It seems like the tcltk package is not installed on my system.
> From: http://tolstoy.newcastle.edu.au/R/help/05/07/7993.html it seems that the tcltk is bundled with the base R distribution.
> 
> I'm running R under linux:
> 
> > version
>                _
> platform       i686-pc-linux-gnu
> arch           i686
> os             linux-gnu
> system         i686, linux-gnu
> status
> major          2
> minor          3.1
> year           2006
> month          06
> day            01
> svn rev        38247
> language       R
> version.string Version 2.3.1 (2006-06-01)
> 
> 
>  tcl8.4 and tk8.4 are both installed.
>  
>  The messages I get when I try to install the debug package are:
> 
> > install.packages("debug")
> trying URL 'http://cran.us.r-project.org/src/contrib/debug_1.1.0.tar.gz'
> Content type 'application/x-tar' length 26492 bytes
> opened URL
> ==================================================
> downloaded 25Kb
> 
> * Installing *source* package 'debug' ...
> ** R
> ** inst
> ** save image
> Loading required package: mvbutils
> MVBUTILS: no "tasks" vector found in ROOT
> Loading required package: tcltk
> Error in firstlib(which.lib.loc, package) :
>         Tcl/Tk support is not available on this system
> Error: package 'tcltk' could not be loaded
> Execution halted
> ERROR: execution of package source for 'debug' failed
> ** Removing '/usr/local/lib/R/library/debug'
> 
> The downloaded packages are in
>         /tmp/RtmpEocXcC/downloaded_packages
> Warning message:
> installation of package 'debug' had non-zero exit status in: install.packages("debug")
> 
> Where am I going wrong?

Did you build R yourself, and can you do library(tcltk) on R's command
line? You may well be missing the -devel packages for tcl and tk.

And, BTW, which Linux distribution is this? "i686-pc-linux-gnu" is not
sufficient. 


-- 
   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)                  FAX: (+45) 35327907



More information about the R-help mailing list