find_textstring: Find snippets of text human readable files

Description Usage Arguments Value Examples

View source: R/find_text_string.R

Description

Scans all files in specified folder for textSnippet

Usage

1
find_textstring(textSnippet, folder, fileType)

Arguments

textSnippet

Character string. A snippet of text

folder

Character string. Folder to search. (Full path required)

fileType

Character String. File type extension. eg ("R","Rmd","txt")

Value

Character vector. Names of the files that contain the text

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
#search all R files in the project root for the string "parameter"
find_text_string("parameter", here::here(),"R")

# search all Rmd files in the vignettes folder for the string "help"
find_text_string("help", here::here("vignettes"),"Rmd")


## End(Not run)

andybeet/abutils documentation built on Feb. 26, 2022, 12:34 a.m.