Usage
system2(command, args = character(),
stdout = "", stderr = "", stdin = "", input = NULL,
env = character(), wait = TRUE,
minimized = FALSE, invisible = TRUE)Arguments
command
the system command to be invoked, as a character string.
args
a character vector of arguments to command.
stdout, stderr
where output to stdout or
stderr should be sent. Possible values are "", to the R
console (the default), NULL or FALSE (discard output),
TRUE (capture the output in a character vector) or a
character string naming a file.
stdin
should input be diverted? "" means the default,
alternatively a character string naming a file. Ignored
if input is supplied.
input
if a character vector is supplied, this is copied one
string per line to a temporary file, and the standard input of
command is redirected to the file.
env
character vector of name=value strings to set environment
variables.
wait
a logical (not NA) indicating whether the R
interpreter should wait for the command to finish, or run it
asynchronously. This will be ignored (and the interpreter will
always wait) if stdout = TRUE.
minimized, invisible
arguments that are accepted on Windows but
ignored on this platform, with a warning.
minimized
logical (not NA), indicates whether the
command window should be displayed initially as a minimized window.
invisible
logical (not NA), indicates whether the
command window should be visible on the screen.