Learn R Programming

assertive (version 0.2-6)

assert_all_are_on_os_path: Is the path on the OS path?

Description

Is the specified path on the operating system search path?

Usage

assert_all_are_on_os_path(x)

assert_any_are_on_os_path(x)

is_on_os_path(x)

Arguments

x
An path to check.

Value

  • TRUE if the specified paths are on the OS search path.

Examples

Run this code
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