runOSCommand | R Documentation |
This is a helper function to run arbitrary OS commands on local or remote machines.
The interface is similar to system2
, but it always returns the exit status
and the output.
runOSCommand(
sys.cmd,
sys.args = character(0L),
stdin = "",
nodename = "localhost"
)
sys.cmd |
[ |
sys.args |
[ |
stdin |
[ |
nodename |
[ |
[named list
] with “sys.cmd”, “sys.args”, “exit.code” (integer), “output” (character).
Other ClusterFunctionsHelper:
cfBrewTemplate()
,
cfHandleUnknownSubmitError()
,
cfKillJob()
,
cfReadBrewTemplate()
,
makeClusterFunctions()
,
makeSubmitJobResult()
## Not run:
runOSCommand("ls")
runOSCommand("ls", "-al")
runOSCommand("notfound")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.