rcmd_copycat
From callr v3.2.0
by Gabor Csardi
Call and R CMD command, while mimicking the current R session
This function is similar to rcmd()
, but it has slightly different
defaults:
The
repos
options is unchanged.No extra environment variables are defined.
Usage
rcmd_copycat(cmd, cmdargs = character(), libpath = .libPaths(),
repos = getOption("repos"), env = character(), ...)
Arguments
- cmd
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.- cmdargs
Command line arguments.
- libpath
The library path.
- repos
The repos option. If
NULL
, then no repos option is set. This options is only used ifuser_profile
orsystem_profile
is setFALSE
, as it is set using the system or the user profile.- env
Environment variables to set for the child process.
- ...
Additional arguments are passed to
rcmd()
.
See Also
Community examples
Looks like there are no examples yet.