find_file | R Documentation |
find_file
looks for a file in the folder directory
with the date date
in its name. It returns the path to that file; if
more than one file is found, it returns the path to the first one and issues
a warning.
find_file( date = Sys.Date(), pattern = paste0(".*", date, ".*"), directory = NULL, file_name = NULL, date_flag = NULL, rtn_error = TRUE )
date |
A |
pattern |
The pattern to match when searching for the filename. The
default is to look for any file with |
directory |
The directory in which to search for the file. |
file_name |
If the search does not return a file known to exist,
|
date_flag |
A string used to print more informative messages in some functions |
A string containing the full path to the file that was found
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.