Site icon R-bloggers

Subprocess in R?

[This article was first published on R – Random Remarks, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

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.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.