Subprocess in R?

November 6, 2016

(This article was first published on R – Random Remarks, and kindly contributed to R-bloggers)

I’ve been trying to find a R equivalent to Python’s subprocess and so far I’ve failed. Since a capability to handle child processes in a way that’s more sophisticated than a simple system() call (R has two of them, system() and system2()) might turn out handy I decided to build a new package for R. It’s name is of course subprocess and you can find it on github.

Right now it’s not much – it works only in Linux, it allows you to start a new process, write to its standard input and read from its standard output and standard error output. However, before I put more work into it, I wanted to make sure I’m not repeating someone else’s work – and if it turns out there is value in this work, to see what other R users might want this new package to have.

Comments appreciated!

To leave a comment for the author, please follow the link and comment on their blog: R – Random Remarks. offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...

If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.

Search R-bloggers


Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)