Skip to content
Prev 11041 / 63424 Next

accessing windows clipboard from load and save (PR#4999)

Regarding, loading a file from the clipboard, I had also posted 
a workaround:

   load(pipe("pclip"))

where pclip is from unxutils.sourceforge.net, although yours has
the advantage of not requiring external programs.
--- On Sat 11/08, Prof Brian Ripley < ripley@stats.ox.ac.uk > wrote:
zz <- file("clipboard", "r")
readLines(zz, 1)
.Internal(loadFromConn(zz, .GlobalEnv))
close(zz)