Re: [R] problems with clipboard

2009-04-29 Thread Jamie.lannister
Thank you very much! See, I'm a new user both for R and mac.. :-) Jamie. Prof Brian Ripley wrote: > > On Tue, 28 Apr 2009, 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.ta

Re: [R] problems with clipboard

2009-04-29 Thread Jamie.lannister
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 s

Re: [R] problems with clipboard

2009-04-28 Thread Prof Brian Ripley
On Tue, 28 Apr 2009, 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(fil

Re: [R] problems with clipboard

2009-04-28 Thread Kevin Middleton
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

[R] problems with clipboard

2009-04-28 Thread Jamie.lannister
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 additio