rcmd {callr} | R Documentation |
Run an R CMD command form within R. This will usually start another R process, from a shell script.
rcmd(cmd, cmdargs = character(), libpath = .libPaths(), repos = getOption("repos"), stdout = NULL, stderr = NULL, show = FALSE, callback = NULL, system_profile = FALSE, user_profile = FALSE, env = character())
cmd |
Command to run. See |
cmdargs |
Command line arguments. |
libpath |
The library path. |
repos |
The ‘repos’ option. If |
stdout |
Optionally a file name to send the standard output to. |
stderr |
Optionally a file name to send the standard error to. |
show |
Logical, whether to show the standard output on the screen
while the child process is running. Note that this is independent
of the |
callback |
A function to call for each line of the standard
output from the child process. It works together with the |
system_profile |
Whether to use the system profile file. |
user_profile |
Whether to use the user's profile file. |
env |
Environment variables to set for the child process. |
A list with the standard output ($stdout
), standard
error (stderr
) and exit status ($status
) of the
external R CMD
command.
Other R CMD commands: rcmd_safe
rcmd("config", "CC")