Re: [R] system vs shell wait command

2010-01-25 Thread robbert blonk
Hi, thanks a lot for your time! However, after testing the program on itself (out of the R env, I found out that something was wrong in the compilation of the linux version (segmentation problem, due to memory allocation?). Unfortunately the thrown error was not mentioned by R. Sorry for wasting

Re: [R] system vs shell wait command

2010-01-24 Thread Emmanuel Charpentier
Le dimanche 24 janvier 2010 à 04:25 -0800, robbert blonk a écrit : > Dear All, > > I try to invoke a second program (called "gencont") within a R script. > However this second program needs some time to finish. After finishing the > output should be read into R and used for further calculation. >

Re: [R] system vs shell wait command

2010-01-24 Thread Duncan Murdoch
On 24/01/2010 7:25 AM, robbert blonk wrote: Dear All, I try to invoke a second program (called "gencont") within a R script. However this second program needs some time to finish. After finishing the output should be read into R and used for further calculation. Under windows, it perfectly work

[R] system vs shell wait command

2010-01-24 Thread robbert blonk
Dear All, I try to invoke a second program (called "gencont") within a R script. However this second program needs some time to finish. After finishing the output should be read into R and used for further calculation. Under windows, it perfectly works: result<-shell("gencont < yn.txt",intern=T