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

Prof Brian Ripley ripley at stats.ox.ac.uk
Sat Nov 8 16:47:31 MET 2003


Yet another report of a non-bug!

First, your example of the use of save() does not work.  That *is* a bug.

Second, please RTFM.  help(load) says

     'load' can load R objects saved in the current or any earlier
     format.  It can read a compressed file (see 'save') directly from
     a file or from a suitable connection.
                      ^^^^^^^^
and nothing says a clipboard is a suitable connection.

If you really want to make a positive contribution you could work out what
changes are necessary to make a clipboard a suitable connection and supply
a patch against the current sources (not an obselete version of R). Hints:
load expects to be able to open a connection in binary mode, and to wrap
it in a decompression wrapper.


On Sat, 8 Nov 2003 ggrothendieck at myway.com wrote:

> Full_Name: Gabor Grothendieck
> Version: 1.7.1
> OS: Windows 2000
> Submission from: (NULL) (207.35.143.81)
> 
> 
> 
>    save(x,ascii=TRUE,file("clipboard")) 
> 
> works but 
> 
>    load(file("clipboard")) 
> 
> does not.
> 
> Even better would be if
> 
>    save(x,ascii=TRUE,"clipboard") 
> and 
>    load("clipboard")
> 
> worked as that would provide consistency with read.table("clipboard")
> 
> ______________________________________________
> R-devel at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-devel
> 
> 

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



More information about the R-devel mailing list