ls_scripts(folder = ".", extn = "r|R|Rmd|rmd", recursive = TRUE)
String describing folder to search recursively in.
Character (can be regex) giving extension to limit search to.
Logical (default = TRUE
). Should directories be searched
recursively.
Character vector of matched file paths.
## find all scripts with the string "AUC("
ls_scripts("~/path/to/analysis/Scripts") %>% search_raw("AUC\\(")
#> NULL