searchScripts: Searches R scripts and R markdown files within a project.

Description Usage Arguments Details Value Examples

View source: R/searchScripts.R

Description

Searches R scripts and R markdown files within a project.

Usage

1
searchScripts(matcher, project.id = getProject(), ...)

Arguments

matcher

string or regular expression to identify within R or R markdown files

project.id

string for project id to search within.

...

arguments to grep

Details

Uses grep. Counts lines with matches, but repeats within a line are not counted. Searches 3 directories: Programs, support_functions, and Markdown

Value

Data frame with file names and counts of lines with matches.

Examples

1
2
3
4
5
6
## Not run: 
# Searches read_data.R within the adaprHome project
searchScripts("read","adaprHome")


## End(Not run) 

gelfondjal/adapr documentation built on Feb. 2, 2020, 1:32 a.m.