Skip to content

clipboard

4 messages · Friedrich Leisch, Peter Dalgaard, A.J. Rossini

#
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
Friedrich Leisch <Friedrich.Leisch@ci.tuwien.ac.at> writes:
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...
#
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
#
PDB> Friedrich Leisch <Friedrich.Leisch@ci.tuwien.ac.at> writes:
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._