Description Usage Arguments Value Note Examples
View source: R/is-on-os-path.R
Is the specified path on the operating system search path?
1 2 3 4 5 6 7 8 9 10 11 | assert_all_are_on_os_path(
x,
severity = getOption("assertive.severity", "stop")
)
assert_any_are_on_os_path(
x,
severity = getOption("assertive.severity", "stop")
)
is_on_os_path(x, .xname = get_name_in_parent(x))
|
x |
An path to check. |
severity |
How severe should the consequences of the assertion be?
Either |
.xname |
Not intended to be used directly. |
TRUE if the specified paths are on the OS search path.
The OS search path is determined with Sys.getenv("path"). For
files, the path of the containing folder is checked rather than the path of
the file itself.
1 2 3 | is_on_os_path(
c(R.home("bin"), R.home("etc"), "a nonexistent path")
) # probably c(TRUE, FALSE, FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.