rcmd_copycat | R Documentation |
R CMD
command, while mimicking the current R sessionThis function is similar to rcmd()
, but it has slightly different
defaults:
The repos
options is unchanged.
No extra environment variables are defined.
rcmd_copycat(
cmd,
cmdargs = character(),
libpath = .libPaths(),
repos = getOption("repos"),
env = character(),
...
)
cmd |
Command to run. See |
cmdargs |
Command line arguments. |
libpath |
The library path. |
repos |
The |
env |
Environment variables to set for the child process. |
... |
Additional arguments are passed to |
callr
makes a copy of the user's .Renviron
file and potentially of
the local or user .Rprofile
, in the session temporary
directory. Avoid storing sensitive information such as passwords, in
your environment file or your profile, otherwise this information will
get scattered in various files, at least temporarily, until the
subprocess finishes. You can use the keyring package to avoid passwords
in plain files.
Other R CMD commands:
rcmd_bg()
,
rcmd()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.