r_can_find_tools: Can R find tools?

Description Usage Arguments Value Note See Also Examples

View source: R/r-has-capability.R

Description

Checks to see if R can see command line tools.

Usage

 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"))

Arguments

tools

A character vector of tools to look for.

severity

How severe should the consequences of the assertion be? Either "stop", "warning", "message", or "none".

java_type

A string denoting the type of Java to look for (either 32 or 64 bit).

Value

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.

Note

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.

See Also

Sys.which

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10

assertive.reflection documentation built on July 31, 2020, 1:06 a.m.