powered by
Is the specified path on the operating system search path?
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))
assert_any_are_on_os_path( x, severity = getOption("assertive.severity", "stop") )
is_on_os_path(x, .xname = get_name_in_parent(x))
An path to check.
How severe should the consequences of the assertion be? Either "stop", "warning", "message", or "none".
"stop"
"warning"
"message"
"none"
Not intended to be used directly.
TRUE if the specified paths are on the OS search path.
TRUE
# NOT RUN { is_on_os_path( c(R.home("bin"), R.home("etc"), "a nonexistent path") ) # probably c(TRUE, FALSE, FALSE) # }
Run the code above in your browser using DataLab