The child process is started in the background, and the function return immediately.
rcmd_bg(cmd, cmdargs = character(), libpath = .libPaths(), stdout = "|",
stderr = "|", repos = c(getOption("repos"), c(CRAN =
"https://cloud.r-project.org")), system_profile = FALSE,
user_profile = FALSE, env = rcmd_safe_env(), wd = ".")
Command to run. See R --help
from the command
line for the various commands. In the current version of R (3.2.4)
these are: BATCH, COMPILE, SHLIB, INSTALL, REMOVE, build, check,
LINK, Rprof, Rdconv, Rd2pdf, Rd2txt, Stangle, Sweave, Rdiff, config,
javareconf, rtags.
Command line arguments.
The library path.
Optionally a file name to send the standard output to.
Optionally a file name to send the standard error to.
The repos option. If NULL
, then no
repos option is set. This options is only used if
user_profile
or system_profile
is set FALSE
,
as it is set using the system or the user profile.
Whether to use the system profile file.
Whether to use the user's profile file.
Environment variables to set for the child process.
Working directory to use for running the command. Defaults to the current working directory.
It returns a process object.
Other R CMD commands: rcmd_copycat
,
rcmd