Description Usage Arguments Value Note Examples
Checks to see if the input directories are known R libraries.
1 2 3 4 5 6 7 | 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))
|
x |
Directory paths |
severity |
How severe should the consequences of the assertion be?
Either |
.xname |
Not intended to be used directly. |
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
.
Input paths are converted to character, and then normalized using
normalizePaths
.
1 | is_library(c(.libPaths(), R.home()))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.