How can I tell R to import the csv-data in the read.table command from the stdout of another program instead of from a file? I want R to launch my csv-export-utility on its own.
How can I tell R to import the csv-data in the read.table command from
Share
See the help page from
help(connections)and the documentation of thepipe()function.Here is a complete (but nonsensical) example where we write a csv file
and then just use
catto show its content on stdin and read that viaread.csv()from thepipe():What we get is what we had, expected: