is_existing_file | R Documentation |
Checks if the path refers to an existing file. Note that this checks for presence of a file. It will fail for directories.
is_existing_file(path, allow_null = FALSE)
path |
the path to check |
allow_null |
if TRUE, allow the path to be NULL. If FALSE (default) do not allow NULL. |
## Not run:
# For assertion
assertthat::assert_that(qscheck::file_exists(f))
# For check
if (qscheck::file_exists(f)) {}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.