
Last chance! 50% off unlimited learning
Sale ends in
Last chance! 50% off unlimited learning
Sale ends in
Normalize and validate a path (optionally, within a certain directory).
format_path(path, dir = NULL, mode = NA)
The normalized path, or NULL
if the path was NULL
.
The path to normalize.
(Optional) the directory to append to the beginning of the path.
NULL
(default) to not append any directory, leaving path
unchanged.
The mode for file.access
to verify existence,
writing permission, or reading permission. Use NA (default) to not perform
any is.