subprocess: Manage Subprocesses in R

Description Details References

Description

Cross-platform child process management modelled after Python's subprocess module.

Details

This R package extends R's capabilities of starting and handling child processes. It brings the capability of alternating read from and write to a child process, communicating via signals, terminating it and handling its exit status (return code).

With R's standard base::system and base::system2 functions one can start a new process and capture its output but cannot directly write to its standard input. Another tool, the parallel::mclapply function, is aimed at replicating the current session and is limited to operating systems that come with the fork() system call.

References

http://github.com/lbartnik/subprocess

http://docs.python.org/3/library/subprocess.html


subprocess documentation built on May 2, 2019, 4:04 p.m.