Learn R Programming

adapr (version 2.0.0)

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

Description

Searches R scripts and R markdown files within a project.

Usage

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

Value

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

Details

Uses grep. Counts lines with matches, but repeats within a line are not counted.

Examples

Run this code
# NOT RUN {
# Opens read_data.R within the adaprHome project
searchScripts("read_data.R","adaprHome")

# }
# NOT RUN {
# }

Run the code above in your browser using DataLab