Skip to contents

Returns names of files whose text contains a pattern

Usage

search_files(pattern, files)

Arguments

pattern

Case sensitive pattern to look for

files

Text files to search (e.g., .R, .txt...)

See also

readLines, grep

Examples

#files<-list.files(path="...",full.names=TRUE)
#search_files('some text',files)