robust_system | R Documentation |
Robustly pass commands to system() and capture stderr and stdout data
robust_system(command)
command |
[Required] String that is passed directly to the base::system() command. |
A list of length 3. list[[1]] is the exit code for the command. list[[2]] is the "stdout" text. list[[3]] is the "stderr" text.
This function was mostly copied from: [https://stackoverflow.com/a/17090601/2367748](https://stackoverflow.com/a/17090601/2367748)
[robust_system_check()]
robust_list <- robust_system("date; cal")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.