Skip to contents

Search workflow

High-level functions for finding matches across files, from a complete workflow in one call to explicit file listing, filtering, and matching steps.

seek() seekr()
Find matches in text files
list_files()
List files to search
filter_files()
Filter files to search
match_files()
Find matches in files

Search customization and diagnostics

Helpers for customizing how files are excluded, preparing more advanced replacement logic, and understanding why a search workflow did or did not produce results.

with_capture_groups_matrix()
Use capture groups in function-based replacements
empty_stage()
Diagnose where a workflow became empty
exclusions()
Inspect why files were excluded
exclude_functions is_git_dir() is_dependency_dir() is_minified_file() is_not_text_mime()
Default file exclusion functions

Match vectors

Functions for inspecting, converting, filtering, summarizing, and ordering seekr_match vectors.

str(<seekr_match>)
Inspect the structure of a seekr_match vector
print(<seekr_match>)
Print matches with context and replacement preview
summary(<seekr_match>) print(<summary_seekr_match>)
Summarize matches and planned replacements
as_tibble(<seekr_match>) as.data.frame(<seekr_match>) as_match()
Convert seekr_match vectors to and from data frames
filter_match()
Filter matches
sort_within_files()
Sort matches within each file
new_seekr_match()
Create seekr_match vectors

File replacement and backups

Apply planned replacements to files, inspect automatic backups, and restore previous file contents when needed.

replace_files()
Replace selected matches in files
list_backups() last_backup() delete_backups() open_backup_dir()
List, inspect, open, and delete backups
restore_files() restore_files_interactive()
Restore files from backups

Text-level workflow

Lower-level helpers for matching and replacing text that has already been read, when you want to control input and output yourself.

match_text()
Find matches in text
replace_text()
Replace selected matches in text

Options and path helpers

Inspect package options and normalize file paths the same way seekr does.

seekr_option()
Retrieve a seekr option
seekr_options()
List seekr options
as_seekr_path()
Normalize file paths for seekr