From Friedrich.Leisch@ci.tuwien.ac.at  Thu Mar 23 15:15:35 2000
From: Friedrich.Leisch@ci.tuwien.ac.at (Friedrich Leisch)
Date: Thu, 23 Mar 2000 16:15:35 +0100 (CET)
Subject: [Rd] clipboard
In-Reply-To: <x2vh2dss7c.fsf@blueberry.kubism.ku.dk>
References: <14554.8132.140193.424776@galadriel.ci.tuwien.ac.at>
 <x2vh2dss7c.fsf@blueberry.kubism.ku.dk>
Message-ID: <14554.13591.966735.391021@galadriel.ci.tuwien.ac.at>

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


[Rd] clipboard
Friedrich Leisch