Function to replace patterns in given files.

file_replace(files = NULL, pattern, replacement)

Arguments

files

character vector of full paths where pattern to be replaced.

pattern

character pattern to replace using `gsub`.

replacement

character to replace pattern with using `gsub`.