R package with single function, robust_system helps you catch stdout, stderr and exit code when running external application from R.
Install with:
library("devtools")
devtools::install_github("J-Moravec/robustSystem")
and use:
library("robustSystem")
robust_system("ls")
$exit_status
[1] 0
$stderr
character(0)
$stdout
[1] "DESCRIPTION" "LICENSE" "man" "NAMESPACE" "R"
[6] "README.md"
Inspired by these stackoverflow answers.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.