path_exists | R Documentation |
Combine path and filename, then check if filename exists. Optionally, checks for present of compressed variant of this filename
path_exists(path, file = NULL, try_compressed = FALSE, silent = FALSE)
path |
a directory on this computer. eg; "C:/temp" on windows or "/home/user1" on unix. Can also provide full path here and leave 'file' param as NULL |
file |
filename within the 'path' |
try_compressed |
if the requested filename is not available, try again with added file extensions known for compression (default: FALSE). See |
silent |
on error, return an empty string instead of throwing an error (default: FALSE) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.