Description Usage Arguments Details Value Examples
This function checks the existence of all files stored in a vector or a list.
1 |
x |
a vector or list of files. |
all_files_exist
is a simple shorthand around base::file.exists
wrapped with an additional
base::all
to return a single value. This makes this function useful when checking that all
files required for or created by some function exist.
a logical value indicating if all files exist.
1 2 3 4 | files = c(tempfile(), tempfile())
all_files_exist(files) # FALSE
file.create(files)
all_files_exist(files) # TRUE
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.