ls_scripts: List scripts

View source: R/import-code.R

ls_scriptsR Documentation

List scripts

Description

[Stable]

Usage

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\\(")


NMproject documentation built on Sept. 30, 2022, 1:06 a.m.