[R] Clipboard size?

Rich FitzJohn rich.fitzjohn at gmail.com
Thu Apr 21 03:11:20 CEST 2005


Hi Chris,

>From ?file:
Clipboard:
...
     When writing to the clipboard, the output is copied to the
     clipboard only when the connection is closed or flushed. There is
     a 32Kb limit on the text to be written to the clipboard. This can
     be raised by using e.g. 'file("clipboard-128")' on NT-based
     versions of Windows, to give 128Kb.

So, 
> write.table(dm, "clipboard", sep="\t")
Warning message: 
clipboard buffer is full and output lost 
> write.table(dm, "clipboard-128", sep = "\t")
>

Cheers,
Rich

On 4/21/05, Chris Bergstresser <chris at subtlety.com> wrote:
> Hi all --
> 
>    I have a matrix of doubles (roughly 30x80) which I'd like to copy to
> the clipboard.  However, as the following shows:
> 
> > dm = matrix(runif(30 * 80), nrow = 80)
> > write.table(dm, "clipboard", sep = "\t")
> Warning message:
> clipboard buffer is full and output lost
> 
>    Is there any way to increase the buffer?  Obviously, other programs
> don't have the same limitations (i.e., I can copy the same volume of
> data from Excel or my text editor and paste it into R without a problem)
> 
> -- Chris
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
> 


-- 
Rich FitzJohn
rich.fitzjohn <at> gmail.com   |    http://homepages.paradise.net.nz/richa183
                      You are in a maze of twisty little functions, all alike




More information about the R-help mailing list