dir_exists | R Documentation |
These are wrapper functions of [utils::file_test()]
to test the
existence of directories and files. Note that file_exists()
only tests
files but not directories, which is the main difference between
file.exists()
in base R. If you use are using the R version
3.2.0 or above, dir_exists()
is the same as dir.exists()
in base R.
dir_exists(x)
file_exists(x)
x |
A vector of paths. |
A logical vector.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.