Reads a set of files, filters lines based on a regular expression pattern, and constructs a tidy tibble of the results.
seek_lines(files, pattern, ..., path, relative_path, matches)
A tibble with one row per matching line.
A character vector of files to search (only for seek_in()
).
A regular expression pattern used to match lines.
Additional arguments passed to readr::read_lines()
, such as
skip
, n_max
, or locale
.
A character vector of one or more directories where files should be
discovered (only for seek()
).
Logical. If TRUE, file paths are made relative to the path argument. If multiple root paths are provided, relative_path is automatically ignored and absolute paths are kept to avoid ambiguity.
Logical. If TRUE
, all matches per line are also returned in a
matches
list-column.