R CMD command, while mimicking the current R session
This function is similar to
rcmd(), but it has slightly different
reposoptions is unchanged.
No extra environment variables are defined.
rcmd_copycat(cmd, cmdargs = character(), libpath = .libPaths(), repos = getOption("repos"), env = character(), ...)
Command to run. See
R --helpfrom the command line for the various commands. In the current version of R (3.2.4) these are:
Command line arguments.
The library path.
NULL, then no
reposoption is set. This options is only used if
FALSE, as it is set using the system or the user profile.
Environment variables to set for the child process.
Additional arguments are passed to