Description Usage Arguments Value Note See Also Examples
View source: R/r-has-capability.R
Checks to see if R can see command line tools.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | assert_r_can_find_tools(
tools,
severity = getOption("assertive.severity", "stop")
)
assert_r_can_compile_code(severity = getOption("assertive.severity", "stop"))
assert_r_can_build_translations(
severity = getOption("assertive.severity", "stop")
)
assert_r_can_find_java(
java_type = c("same_as_r", "any", "64bit", "32bit"),
severity = getOption("assertive.severity", "stop")
)
r_can_find_tools(tools)
r_can_compile_code()
r_can_build_translations()
r_can_find_java(java_type = c("same_as_r", "any", "64bit", "32bit"))
|
tools |
A character vector of tools to look for. |
severity |
How severe should the consequences of the assertion be?
Either |
java_type |
A string denoting the type of Java to look for (either 32 or 64 bit). |
The is_*
functions return TRUE
if the input is
within an interval. The assert_*
functions return nothing but
throw an error if the corresponding is_*
function returns
FALSE
.
r_can_compile_code
is a convenience function looking for
gcc
and make
.
r_can_build_translations
is a convenience function looking for
gettext
and msgfmt
.
1 2 3 4 5 6 7 8 9 10 | r_can_find_tools(c("latex", "pdflatex"))
r_can_compile_code()
r_can_build_translations()
r_can_find_java()
assertive.base::dont_stop({
assert_r_can_find_tools(c("latex", "pdflatex"))
assert_r_can_compile_code()
assert_r_can_build_translations()
assert_r_can_find_java("64bit")
})
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.