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

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Fri Nov 22 12:29:06 CET 2002


<ripley at stats.ox.ac.uk> writes:

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

Potentially, you could sink() to a text connection and then
tkclipboard.append(paste(lines,collapse="\n")). However, I bet noone
actually tried this, and I'm unsure whether it works on Windows or
perhaps might be an X11-only feature. 

[How to get tcltk to work in the first place]
> Try the README or the rw-FAQ!

Yep.

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