spawnRcmd: Launch R Command as a Child Process

spawnRcmdR Documentation

Launch R Command as a Child Process

Description

launch one (or more) R commands as a separate child process.

Usage

spawnRcmd(rCommands, Rpackage = "DuffyTools", logFile = "spawnRcmd.log.txt")

Arguments

rCommands

one character string that is a series of valid R comands to execute. Care must be taken to have embedded character strings awways come through intact.

Rpackage

one R package to preload, via library

logFile

created text file that captures stdout and stderr of the child process.

Details

This is a rather crude method to spawn off separate subtasks to speed up overall processing.

Note

Interrupting the main R session via ctrl-C will send a kill signal to all spawned child processes.


robertdouglasmorrison/DuffyTools documentation built on April 16, 2024, 6:31 a.m.