Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

system3

Wrapper for system2 with better return type and errorhandling.


Description

Wrapper for system2 with better return type and errorhandling.

Usage

system3(command, args = character(0L), stdout = "", stderr = "",
  wait = TRUE, ..., stop.on.exit.code = wait)

Arguments

command

See system2.

args

See system2.

stdout

See system2.

stderr

See system2.

wait

See system2.

...

Further arguments passed to system2.

stop.on.exit.code

[logical(1)]
Should an exception be thrown if an exit code greater 0 is generated? Can only be used if wait is TRUE. Default is wait.

Value

[list].

exit.code [integer(1)]

Exit code of command. Given if wait is TRUE, otherwise NA. 0L means success. 127L means command was not found

output [character]

Output of command on streams. Only given is stdout or stderr was set to TRUE, otherwise NA.


BBmisc

Miscellaneous Helper Functions for B. Bischl

v1.11
BSD_2_clause + file LICENSE
Authors
Bernd Bischl [aut, cre], Michel Lang [aut], Jakob Bossek [aut], Daniel Horn [aut], Jakob Richter [aut], Dirk Surmann [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.