find_file | R Documentation |
Determine the path of a defined file via brute force search of (optionally) the root directory.
find_file(pattern, root = Sys.getenv("HOME"))
pattern |
Character string of the pattern match. |
root |
The path of the root directory to start the highest level search. |
The path(s) containing the regular expression specified in pattern
.
## Not run: find_file("infection_data.csv") fs::file_create("myfile.txt") find_file("myfile.txt") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.