[Stable]

ls_scripts(folder = ".", extn = "r|R|Rmd|rmd", recursive = TRUE)

Arguments

folder

String describing folder to search recursively in.

extn

Character (can be regex) giving extension to limit search to.

recursive

Logical (default = TRUE). Should directories be searched recursively.

Value

Character vector of matched file paths.

Examples


## find all scripts with the string "AUC("
ls_scripts("~/path/to/analysis/Scripts") %>% search_raw("AUC\\(")
#> NULL