Learn R Programming

NMproject (version 0.6.9)

ls_scripts: List scripts

Description

[Stable]

Usage

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

Value

Character vector of matched file paths.

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.

Examples

Run this code

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

Run the code above in your browser using DataLab