file.ready | R Documentation |
Checks if a file exists and whether it is empty or not.
file.ready(path, dont_raise = TRUE)
path |
path to the file |
dont_raise |
if set to FALSE then an error would be raised if there was no path provided |
Returns TRUE if an input file path is not NA, exists, and not an empty file. If the path provided is NA then by default FALSE would be returned, unless dont_raise is set to TRUE and then an error would be raised.
Alon Shaiber
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.