is_path() checks for either a file_path class or an
fs_path, the latter useful for the fs package.
file_path() is an alias for fp() and is_file_path() is an alias for
is_path().
Arguments
- ...
Path components, passed to
file.path()- x
An object to test
Value
fp()/file_path(): Acharactervector of the normalized path with a"file_path"classis_path()/is_file_path(): ATRUEorFALSEvalue
Examples
fp("here")
#> here
fp("~/there")
#> /home/runner/there
fp("back\\slash")
#> back/slash
fp("remove//extra\\\\slashes")
#> remove/extra/slashes
fp("a", c("b", "c"), "d")
#> a/b/d
#> a/c/d
