rcmd_bg | R Documentation |
R CMD
command in the backgroundThe child process is started in the background, and the function return immediately.
rcmd_bg(
cmd,
cmdargs = character(),
libpath = .libPaths(),
stdout = "|",
stderr = "|",
poll_connection = TRUE,
repos = default_repos(),
system_profile = FALSE,
user_profile = "project",
env = rcmd_safe_env(),
wd = ".",
supervise = FALSE,
...
)
cmd |
Command to run. See |
cmdargs |
Command line arguments. |
libpath |
The library path. |
stdout |
Optionally a file name to send the standard output to. |
stderr |
Optionally a file name to send the standard error to.
It may be the same as |
poll_connection |
Whether to have a control connection to the process. This is used to transmit messages from the subprocess to the parent. |
repos |
The |
system_profile |
Whether to use the system profile file. |
user_profile |
Whether to use the user's profile file.
If this is |
env |
Environment variables to set for the child process. |
wd |
Working directory to use for running the command. Defaults to the current working directory. |
supervise |
Whether to register the process with a supervisor. If |
... |
Extra arguments are passed to the processx::process constructor. |
It returns a process object.
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()
,
rcmd_copycat()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.