Run R CMD xxx from within R
RCMD(cmd, options, path = tempdir(), env_vars = character(), ...)
one of the R tools available from the R CMD interface.
a character vector of options to pass to the command
the directory to run the command in.
environment variables to set before running the command.
additional arguments passed to system_check
TRUE
if the command succeeds, throws an error if the command
fails.