[R] save(iris,file="clipboard",ascii=TRUE)

Gabor Grothendieck ggrothendieck at myway.com
Wed Nov 5 19:27:54 CET 2003

Is this a bug?  I thought that "clipboard" could always be substituted
for a filename when dealing with ASCII files.

> data(iris)
> save(iris,ascii=TRUE,file="clipboard")
Error in file(file, "wb") : `mode' for the clipboard must be `r' or `w'

Also this (where gclip is a utility found at unxutils.sourceforge.net
that copies its standard input to the clipboard):

> save(iris,ascii=TRUE,file="myiris.rda")
> system("cmd /c gclip < myiris.rda")
> load("clipboard")
Error in open.connection(con, "rb") : unable to open connection
In addition: Warning message:
cannot open compressed file `clipboard'

No banners. No pop-ups. No kidding.
Introducing My Way - http://www.myway.com

More information about the R-help mailing list