checkSystemResult | R Documentation |
Evaluates the result from R's system()
function and checks for a
non-zero exit status. If the system command failed (i.e., returned a non-zero
exit status), the function throws an error. If the result contains the
command's output, it is returned.
checkSystemResult(result)
result |
The result of a
|
If result
is a character vector (command output) and has no
status
attribute, returns the output.
If result
is numeric (exit status code), returns the status
code.
If the command failed (non-zero exit status), the function stops with an error message.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.