Hi, if we do something like that for windows (which might be useful) we should do the same for X, i.e., use the X clipboard in the same way. Not that I know how to access it but it shouldn't be too hard to find out. Both would probably come down to having something like read.table(text=foo, ...) along with foo <- getClipboard(...) reading a text string from the X or Windows clipboard (assuming that what you get from the windows clipboard is a string). .f -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
clipboard
4 messages · Friedrich Leisch, Peter Dalgaard, A.J. Rossini
Friedrich Leisch <Friedrich.Leisch@ci.tuwien.ac.at> writes:
if we do something like that for windows (which might be useful) we should do the same for X, i.e., use the X clipboard in the same way. Not that I know how to access it but it shouldn't be too hard to find out. Both would probably come down to having something like read.table(text=foo, ...) along with foo <- getClipboard(...) reading a text string from the X or Windows clipboard (assuming that what you get from the windows clipboard is a string).
Wouldn't that require some sort of coordination with a similar feature in e.g. gnumeric? If all we can do with the clipboard is to stick its content into a text file, we might as well do so directly...
O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk) FAX: (+45) 35327907 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
"PDB" == Peter Dalgaard BSA <p.dalgaard@biostat.ku.dk> writes:
PDB> Wouldn't that require some sort of coordination with a
PDB> similar feature in e.g. gnumeric? If all we can do with the
PDB> clipboard is to stick its content into a text file, we might
PDB> as well do so directly...
Check out the drag-n-drop discussions on the XEmacs/GNOME mailing
lists... (or possibly the code -- you'd have to look at the various
DnD protocols, 4-5 currently in use to be fairly general across unices
and not just Linux-centric (which would still be 3) I believe...).
best,
-tony
A.J. Rossini Research Assistant Professor of Biostatistics Biostatistics/Univ. of Washington (Th) Box 357232 206-543-1044 (3286=fax) Center for AIDS Research/HMC/UW (M/F) Box 359931 206-731-3647 (3693=fax) VTN/SCHARP/FHCRC (Tu/W) Box 358080 206-667-7025 (4812=fax) rossini@(biostat.washington.edu|u.washington.edu|hivnet.fhcrc.org) http://www.biostat.washington.edu/~rossini -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On 23 Mar 2000 14:59:19 +0100, Peter Dalgaard BSA (PDB) wrote:
PDB> Friedrich Leisch <Friedrich.Leisch@ci.tuwien.ac.at> writes:
if we do something like that for windows (which might be useful) we should do the same for X, i.e., use the X clipboard in the same way. Not that I know how to access it but it shouldn't be too hard to find out. Both would probably come down to having something like read.table(text=foo, ...) along with foo <- getClipboard(...) reading a text string from the X or Windows clipboard (assuming that what you get from the windows clipboard is a string).
PDB> Wouldn't that require some sort of coordination with a similar feature PDB> in e.g. gnumeric? If all we can do with the clipboard is to stick its PDB> content into a text file, we might as well do so directly... Well, sure ... I just meant the above as simple default method which should work in cooperation with all applications. If I write the string to a tmpfile and use the current read.table or enhance read.table is probably not really important, just the latter should be more efficient (and could be useful in other contexts, too). .f -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._