Learn R Programming

Kmisc (version 0.5.0)

sys: Invoke a System Command

Description

This function wraps to system, but interprets all un-named arguments as things to be paste-ed. See system for further details.

Usage

sys(..., intern = FALSE, ignore.stdout = FALSE, ignore.stderr = FALSE, wait = TRUE, input = NULL, show.output.on.console = TRUE, minimized = FALSE, invisible = TRUE)

Arguments

...
System command to be invoked; this gets passed into paste(..., sep='', collapse='').
intern
A logical (not NA) which indicates whether to capture the output of the command as an R character vector.
ignore.stdout
Ignore stdout?
ignore.stderr
Ignore stderr?
wait
Should the R interpreter wait for the program to finish execution?
input
If a character vector is supplied, this is copied one string per line to a temporary file, and the standard input of ... is redirected to the file.
show.output.on.console
Windows only -- show output on console?
minimized
Windows only -- run the shell minimized?
invisible
Windows only -- run invisibly?