[R] tkclipboard.append(...) and TCL_LIBRARY not set

graham lawrence forporphyry at hotmail.com
Thu Nov 21 22:40:21 CET 2002


Dear R-Help,

Searching for a function that will copy the value of an R object to the 
windows clipboard led me to "tkclipboard.append(...)".

Will this function do what I seek? Or if not, does anyone know of such an R 
function?

If tkclipboard.append(...) is what I need, please explain how I can set 
TCL_LIBRARY.  With R 1.6 on W98 I got the following R dialog.  (If it is 
relevant, the DESCRIPTION file does contain a Built line).

Thanking you in advance,

graham lawrence


>library(tcltk)
Error in firstlib(which.lib.loc, package) :
        TCL_LIBRARY is not set
Error in library(tcltk) : .First.lib failed
>?library
>.packages(all.available = TRUE)
[1] "base"       "boot"       "class"      "cluster"    "ctest"
[6] "eda"        "foreign"    "grid"       "KernSmooth" "lattice"
[11] "lqs"        "MASS"       "methods"    "mgcv"       "modreg"
[16] "mva"        "nlme"       "nls"        "nnet"       "rpart"
[21] "spatial"    "splines"    "stepfun"    "survival"   "tcltk"
[26] "tools"      "ts"
>TCL_LIBRARY<-"C:/Tcl/lib"
Warning message:
The use of _ is deprecated: you will be warned only once per session
>library(tcltk)
Error in firstlib(which.lib.loc, package) :
        TCL_LIBRARY is not set
Error in library(tcltk) : .First.lib failed
>.First.lib
function (lib, pkg)
library.dynam("ctest", pkg, lib)
>lib.loc
Error: Object "lib.loc" not found
>lib.loc<-NULL
>lib.loc
NULL
>library(tcltk)
Error in firstlib(which.lib.loc, package) :
        TCL_LIBRARY is not set
Error in library(tcltk) : .First.lib failed

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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