[R] popen() ?

Oliver oliver at first.in-berlin.de
Fri May 14 12:31:47 CEST 2010


Oliver <oliver <at> first.in-berlin.de> writes:

> 
> Hello,
> 
> is there a possibility to call a program (like with system())
> and read back the data it prints to stdout?
> 
> On Unix/Linux there is the popen() systemcall, which does this.
> 
> Is it available in R?
> Maybe via extra packages?
> 
> Ciao,
>   Oliver
> 
> 


Ah,  found pipe()

can read my data with
  readLines(pipe("ls -1") )
for example :)



More information about the R-help mailing list