file_access | R Documentation |
file_exists(path)
is a shortcut for file_access(x, "exists")
;
dir_exists(path)
and link_exists(path)
are similar but also check that
the path is a directory or link, respectively. (file_exists(path)
returns
TRUE
if path
exists and it is a directory.)
file_access(path, mode = "exists")
file_exists(path)
dir_exists(path)
link_exists(path)
path |
A character vector of one or more paths. |
mode |
A character vector containing one or more of 'exists', 'read', 'write', 'execute'. |
Cross-compatibility warning: There is no executable bit on
Windows. Checking a file for mode 'execute' on Windows, e.g.
file_access(x, "execute")
will always return TRUE
.
A logical vector, with names corresponding to the input path
.
file_access("/")
file_access("/", "read")
file_access("/", "write")
file_exists("WOMBATS")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.