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
popen() ?
3 messages · oliver, Duncan Murdoch
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 :)
On 14/05/2010 6:09 AM, Oliver wrote:
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?
See ?pipe. Duncan Murdoch