Description Usage Arguments Value Examples
Finds first file in search_path that exists
1  | locate_file(x, search_path = c("."), recursive = FALSE)
 | 
x | 
 string for file name  | 
search_path | 
 vector of strings giving search path  | 
recursive | 
 logical. Default TRUE. whether to do recusive search or not  | 
Path of located file. Returns error if file not found.
1 2 3 4  | ## Not run: 
locate_file('script.R',c('.','Scripts')) ## looks in current working directory, then Scripts folder
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.