spawnRcmd: Launch R Command as a Child Process

Description Usage Arguments Details Note

Description

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

Usage

1
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 Dec. 7, 2018, 8:02 a.m.