View source: R/path_by_pattern.R
path_by_pattern | R Documentation |
path_by_pattern()
finds the most recent file in a given directory that
matches a regular expression.
path_by_pattern(dir, pattern, by = c("modified", "created"))
dir |
The path to the directory of interest |
pattern |
The regular expression to use when filtering paths |
by |
Should recency be determined by modification or creation date? |
An fs_path
vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.