Description Usage Arguments Value See Also
View source: R/Miscellaneous_Functions.R
The function throws an error if the command-line tool cannot be run and its
version queried by a call to system2
. Otherwise, the function
compares the return version value with the argument v_expected
. If it
does not match and the argument stop_on_mismatch
has a TRUE
value, then an error is thrown with a suitable message; otherwise, a warning
is issued.
1 | check_cltool(tool, v_expected, stop_on_mismatch = FALSE)
|
tool |
A character string. The name of the command-line tool. |
v_expected |
A character string that is or can be converted to represent the expected version of the command-line tool. |
stop_on_mismatch |
A logical value. |
An invisible TRUE
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.