Find files in a path that contains text that matches a pattern. The files in the given path can also be optionally subset based on a pattern of its own before the files are read into the caller environment, useful feature for cases where the path contains a mix of different file types and only text files need to be read.
grepl_text_files( path = ".", file_pattern = NULL, all.files = FALSE, recursive = FALSE, text_pattern, ignore.case = TRUE, perl = FALSE, fixed = FALSE, useBytes = FALSE )
| path | a character vector of full path names; the default
corresponds to the working directory, |
|---|---|
| all.files | a logical value. If |
| recursive | logical. Should the listing recurse into directories? |
| ignore.case | if |
| perl | logical. Should Perl-compatible regexps be used? |
| fixed | logical. If |
| useBytes | logical. If |