As should be evident , you thought wrong (and you are thinking in the
blinkered Windows way, too).
On Windows, file() can take a filename "clipboard" in text mode only.
load() and save() are not using file(), but you could probably use it
explicitly in ASCII mode.
Don't assume your own errors are bugs in other peoples' work: it is
discourteous.
On Wed, 5 Nov 2003, Gabor Grothendieck wrote:
>
>
> 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
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>
>
--
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 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595