It is the stdin
stream of the program so for example you can pipe data to your program:
x <- 'foo\nbar\nbaz\n'
system("grep ba", input = x)
That would be the equivalent of a shell command
echo 'foo\nbar\nbaz\n' | grep ba
It is the stdin
stream of the program so for example you can pipe data to your program:
x <- 'foo\nbar\nbaz\n'
system("grep ba", input = x)
That would be the equivalent of a shell command
echo 'foo\nbar\nbaz\n' | grep ba