seek_lines | R Documentation |
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)
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 |
A tibble with one row per matching line.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.