run_well | R Documentation |
This function is a wrapper for \link{[processx]{run}}
, with opinionated error
handling. It will return the result of stdin
if possible, and give errors
about timeouts and stderr
otherwise.
run_well(
command,
args = character(),
split_args = TRUE,
capture_error = FALSE,
...
)
command |
Character scalar, the command to run. If you are
running |
args |
Character vector, arguments to the command. |
split_args |
(logical; default = |
capture_error |
(logical; default = |
... |
other arguments passed to |
a character vector of stdout
## Not run:
# Where is R (hopefully on your path)?
run_well("where.exe", "R")
# Where is are (hopefully nowhere)?
run_well("where.exe", "are")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.