powered by
is_path() checks for either a file_path class or an fs_path, the latter useful for the fs package.
is_path()
file_path
fs_path
fs
file_path() is an alias for fp() and is_file_path() is an alias for is_path().
file_path()
fp()
is_file_path()
fp(...)file_path(...)is_path(x)is_file_path(x)
file_path(...)
is_path(x)
is_file_path(x)
fp()/file_path(): A character vector of the normalized path with a "file_path" class
character
"file_path"
is_path()/is_file_path(): A TRUE or FALSE value
TRUE
FALSE
Path components, passed to file.path()
file.path()
An object to test
Lightweight file path functions
fp("here") fp("~/there") fp("back\\slash") fp("remove//extra\\\\slashes") fp("a", c("b", "c"), "d")
Run the code above in your browser using DataLab