seek_lines {seekr} | R Documentation |
Read and Prepare Matching Lines
Description
Reads a set of files, filters lines based on a regular expression pattern, and constructs a tidy tibble of the results.
Usage
seek_lines(files, pattern, ..., path, relative_path, matches)
Arguments
files |
A character vector of files to search (only for |
pattern |
A regular expression pattern used to match lines. |
... |
Additional arguments passed to |
path |
A character vector of one or more directories where files should be
discovered (only for |
relative_path |
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. |
matches |
Logical. If |
Value
A tibble with one row per matching line.
[Package seekr version 0.1.3 Index]