[R] a clipboard problem while using R2HTML

From: Frank Liu <ashan_at_ku.edu>
Date: Thu 04 May 2006 - 15:28:42 EST


I followed the examples of previous posts about R2HTML to practice exporting a data to a clipboard, but the result is not as smooth as I had expected:

library(R2HTML)
data(iris)
HTML(iris, file("clipboard","w"), append=FALSE)

I got an error message:
> HTML(iris, file("clipboard","w"), append=FALSE)
Error in file("clipboard", "w") : 'mode' for the clipboard must be 'r' on Unix

I changed w to r, but there seems a clipboard problem:
> HTML(iris, file("clipboard","r"), append=FALSE)
Error: clipboard connection is open for reading only

The only setting about the clipboard is in my .emacs is:   '(x-select-enable-clipboard t))

Thank you in advance for any hint.
I am using Linux Fedora 4. Kernel 2.6.15-1.1833_1. R version 2.3.0, ESS 5.3.0.

-Frank



R-help@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 Received on Thu May 04 15:15:39 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 04 May 2006 - 18:09:56 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.