[Rd] clipboard

Friedrich Leisch Friedrich.Leisch@ci.tuwien.ac.at
Thu, 23 Mar 2000 16:15:35 +0100 (CET)


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