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.libfunction (lib, pkg) library.dynam("ctest", pkg, lib)>lib.locError: Object "lib.loc" not found>lib.loc<-NULL >lib.locNULL>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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
ripley@stats.ox.ac.uk
2002-Nov-22 08:21 UTC
[R] tkclipboard.append(...) and TCL_LIBRARY not set
On Thu, 21 Nov 2002, graham lawrence wrote:> 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?This doesn't make sense to me. An R object is not something the clipboard can understand. What exactly do you want to copy to the clipboard? The contents of a character vector, perhaps?> 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).Try the README or the rw-FAQ! [...] -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._