Skip to content

popen() ?

3 messages · oliver, Duncan Murdoch

#
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
#
Oliver <oliver <at> first.in-berlin.de> writes:
Ah,  found pipe()

can read my data with
  readLines(pipe("ls -1") )
for example :)
#
On 14/05/2010 6:09 AM, Oliver wrote:
See ?pipe.

Duncan Murdoch