fp {fuj} | R Documentation |
File path
Description
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()
.
Usage
fp(...)
file_path(...)
is_path(x)
is_file_path(x)
Arguments
... |
Path components, passed to |
x |
An object to test |
Details
Lightweight file path functions
Value
-
fp()
/file_path()
: Acharacter
vector of the normalized path with a"file_path"
class -
is_path()
/is_file_path()
: ATRUE
orFALSE
value
Examples
fp("here")
fp("~/there")
fp("back\\slash")
fp("remove//extra\\\\slashes")
fp("a", c("b", "c"), "d")
[Package fuj version 0.2.1 Index]