assert_r_can_find_tools {assertive.reflection} | R Documentation |
Checks to see if R can see command line tools.
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
.
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") })