rcmd_safe {callr} | R Documentation |
Very similar to rcmd
, but with different defaults,
that tend to create a less error-prone execution environment for the
child process.
rcmd_safe(cmd, cmdargs = character(), libpath = .libPaths(), repos = c(getOption("repos"), c(CRAN = "https://cran.rstudio.com")), system_profile = FALSE, user_profile = FALSE, env = c(CYGWIN = "nodosfilewarning", R_TESTS = "", R_BROWSER = "false", R_PDFVIEWER = "false"), ...)
cmd |
Command to run. See |
cmdargs |
Command line arguments. |
libpath |
The library path. |
repos |
The ‘repos’ option. If |
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. |
... |
Additional arguments are passed to |
Other R CMD commands: rcmd