On 28/10/2010 15:10, Bambhania, Anand M. wrote:
> Hi all,

Hello

> I'm using Rshell to process multiple sample files. I read all files as a 
> string vector called "Files". It also gives number of samples with length 
> function but when I try to read them tab delimited for further processing, it 
> gives me following error for output port "temp":
>
> [error]
> org.rosuda.REngine.Rserve.RserveException: cannot open the connection
>
> net.sf.taverna.t2.activities.rshell.RshellActivity$1.run(RshellActivity.java:217)
> java.lang.Thread.run(Thread.java:662)
> [error]
 >
> I'm trying very simple code:
>
> #Files are sample files(.txt) read as string vector
> Sample_length<-length(Files)

So the script is OK up to here?

> #looping through string vector and reading each sample file tab delimited
> for (i in 1:24)
> {
>       #Read in as temporary data, process it, then assign as SampleName
>       temp<- read.delim(Files[i], skip=13, sep=";", header=F, na.strings=NA, 
> fill=T)
> }
>
> I'm unable to find what causes this error. Any idea?

Are the files on the R server? Looking at the code, I think R is 
complaining it "cannot open the connection" to one of the files.

> Thanks,
>
> Anand

Alan

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
taverna-users mailing list
[email protected]
[email protected]
Web site: http://www.taverna.org.uk
Mailing lists: http://www.taverna.org.uk/about/contact-us/

Reply via email to