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

Description Usage Arguments Details Value Examples

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.

Value

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

Examples

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


## End(Not run) 

adapr documentation built on May 1, 2019, 7:05 p.m.