Description Usage Arguments Value
Confirms all paths exist and separates files from directories
1 | file_dir_exist(paths, if_nonexistent = "capture")
|
paths |
character vectors containing file or directory paths. Tilde
expansion (see |
if_nonexistent |
how to handle paths which do not exist; one of: "capture" = capture nonexistent paths in a named vector in the list "warn" = emit a warning listing paths that do not exist "error" = emit an error listing paths that do not exist |
A 2- or 3-vector, named list with:
- "file" containing path to files,
- "dir" containing path to directories, and
- "nonexistent" containing paths that do not exist, if
if_nonexistent = "capture"
; otherwise paths that do not exist are
listed in a warning or error message
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.