first_accessible_path | R Documentation |
This function is useful for finding a file that may be in one of several different locations.
first_accessible_path(paths, mode = 0)
paths |
"A character vector of paths to check for accessibility, in order." |
mode |
"Has the same meaning as in |
The first element of paths
for which
file.access()
returns TRUE. If none of paths
is
accessible, NA is returned.
exec_paths <- strsplit(Sys.getenv("PATH"), ":")[[1]] first_accessible_path(exec_paths)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.