Skip to contents

Scan all folders and files to find a string: string_search

Usage

string_search(path = ".", pattern, string)

Arguments

path

If NULL, the current directory is used

pattern

A regular expression pattern such as '\.R$'

string

A string such as 'metric'

Value

A character vector with the names of the files that contain the string

Examples

if (FALSE) { # \dontrun{
string_search(path=".","\\.R$","metric")
} # }
# function string_search