How to install tcltk in R?

My system: debian6 + r-2.15.

I installed tcl-devel and tk-devel using apt-get :

 apt-get install tcl8.5-dev tk8.5-dev 

But I get the following error

 > library("tcltk") Error : .onLoad failed in loadNamespace() for 'tcltk', details: call: fun(libname, pkgname) error: Tcl/Tk support is not available on this system In addition: Warning message: S3 methods '$.tclvar', '$<-.tclvar', 'as.character.tclObj', 'as.character.tclVar', 'as.double.tclObj', 'as.integer.tclObj', 'as.logical.tclObj', 'as.raw.tclObj', 'print.tclObj', '[[.tclArray', '[[<-.tclArray', '$.tclArray', '$<-.tclArray', 'names.tclArray', 'names<-.tclArray', 'length.tclArray', 'length<-.tclArray', 'tclObj.tclVar', 'tclObj<-.tclVar', 'tclvalue.default', 'tclvalue.tclObj', 'tclvalue.tclVar', 'tclvalue<-.default', 'tclvalue<-.tclVar', 'close.tkProgressBar' were declared in NAMESPACE but not found Error: package/namespace load failed for 'tcltk' > install.packages('tcltk') Warning message: package 'tcltk' is not available (for R version 2.15.1) 

How can I install tcltk in my R?


Edit

 > capabilities()["tcltk"] tcltk FALSE 

I compiled R-2.15.1 to install it on debian6.04, but how do I do it now to run tcltk ?

+7
source share
1 answer

I think you are doing it wrong.

Read the README at http://cran.r-project.org/bin/linux/debian/ to find out how to get the current version of R for your version of Debian (whether it is stable or testable). This version already supports the tcltk package that ships with R if R is built correctly. Which is easiest to provide with the appropriate pre-built version.

You can verify this by looking at capabilities() :

 R> capabilities()["tcltk"] tcltk TRUE R> 
+5
source

All Articles