subprocess: Manage Subprocesses in R

Description Details References


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


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.


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