str_replace_all_in_file {vvconverter}R Documentation

Replace all occurences of a pattern in a file

Description

Replace all occurences of a pattern in a file

Usage

str_replace_all_in_file(
  file,
  pattern,
  replacement = "[...]",
  only_comments = TRUE,
  collapse = FALSE
)

Arguments

file

character, path of file to be modified

pattern

character, pattern to be replaced

replacement

character, replacement text

only_comments

logical, should the replacement only be done in comments

collapse

logical, should the lines be collapsed into a single line before replacement

Value

NULL, the file is modified in place


[Package vvconverter version 0.5.10 Index]