[R] problems with clipboard

Jamie.lannister mp248 at le.ac.uk
Wed Apr 29 13:55:20 CEST 2009


Thank you very much.
I'll try.
Jamie

Kevin Middleton-3 wrote:
> 
> 
> Jamie,
> 
> Try it as:
> 
> data2 <- read.table(pipe('pbpaste'), header = T)
> 
> I have a read.clipboard() function defined in ~/.Rprofile:
> 
> read.clipboard <- function(){read.table(pipe('pbpaste'), header = T)}
> 
> Also see the "Clipboard" section of ?pipe.
> 
> Cheers,
> Kevin
> 
> 
> -------------------------------------------------
> Kevin M. Middleton
> Department of Biology
> California State University San Bernardino
> 5500 University Parkway
> San Bernardino CA 92407
> 
> 
> On Apr 28, 2009, at 9:31 AM, Jamie.lannister wrote:
> 
>>
>> Hi I'm a mac user. I have problems loading data from mac excel in R.
>> I'm using these script:
>>> library(utils)
>>> data2 <- read.table(file("clipboard"), header =T, sep ="\t")
>> ____but this is the message that I have from R_____
>> Error in open.connection(file, "r") : cannot open the connection
>> In addition: Warning message:
>> In open.connection(file, "r") :
>>  clipboard cannot be opened or contains no text
>>
>> More complicate then that is that sometimes it works sometimes  
>> no.......
>> I'm very confuse.... any help?
>>
>> Jamie
>> -- 
>> View this message in context:
>> http://www.nabble.com/problems-with-clipboard-tp23280578p23280578.html
>> Sent from the R help mailing list archive at Nabble.com.
>>
>> ______________________________________________
>> R-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide
>> http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
> 
> 

-- 
View this message in context: http://www.nabble.com/problems-with-clipboard-tp23280578p23295814.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list