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

string_search(path=".","\\.R$","metric")
#> Error in value[[3L]](cond): An error occurred: Please provide corrected path.

# function string_search