Perform Bulk Find-and-Replace on Multiple Files Using stringr
Source:R/ngr_str_replace_in_files.R
ngr_str_replace_in_files.Rd
This function explicitly reads the content of files, performs find-and-replace
operations using stringr
, and writes the updated content back to the files.
It handles word boundaries, trailing punctuation, and allows for specific symbols
like @
to precede the text to be replaced.
Value
logical Invisibly returns a logical vector indicating success for each file.