assert_all_are_libraries

0th

Percentile

Is the directory a known R library?

Checks to see if the input directories are known R libraries.

Usage
assert_all_are_libraries(x, severity = getOption("assertive.severity", "stop"))
assert_any_are_libraries(x, severity = getOption("assertive.severity", "stop"))
is_library(x, .xname = get_name_in_parent(x))
Arguments
x
Directory paths
severity
How severe should the consequences of the assertion be? Either "stop", "warning", "message", or "none".
.xname
Not intended to be used directly.
Value

is_library returns TRUE if and only if the input paths are known R package libraries. That is, they must be paths returned by .libPaths.

Note

Input paths are converted to character, and then normalized using normalizePaths.

Aliases
  • assert_all_are_libraries
  • assert_any_are_libraries
  • is_library
Examples
library(assertive.files) is_library(c(.libPaths(), R.home()))
Documentation reproduced from package assertive.files, version 0.0-2, License: GPL (>= 3)

Community examples

Looks like there are no examples yet.