search_replace_in_file function

Find string and replace in file

Find string and replace in file

search_replace_in_file(files = c(), find = NULL, replacement = NULL)

Arguments

  • files: vector of files
  • find: find what string, vector of character
  • replacement: replace with what, vector of character, should be equal in length to find

Returns

Function does not return a value but edits files on disk

  • Maintainer: Ron Keizer
  • License: MIT + file LICENSE
  • Last published: 2024-08-19