| is_abs_path | R Documentation |
On Unix, check if the paths start with ‘/’ or ‘~’ (if they do, they are absolute paths). On Windows, check if the paths start with a drive letter (e.g., ‘C:’), a (back)slash (e.g., ‘/foo’), a UNC prefix (e.g., ‘\\host\share’), or ‘~’.
is_abs_path(x)
is_rel_path(x)
x |
A vector of paths. |
A logical vector.
xfun::is_abs_path(c("C:/foo", "foo.txt", "/Users/john/", tempdir()))
xfun::is_rel_path(c("C:/foo", "foo.txt", "/Users/john/", tempdir()))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.