gsub_file: File Text Replacement

Description Usage Arguments Value See Also

View source: R/gsub-file.R

Description

Uses base::gsub() to perform text replacement on a file.

Usage

1
gsub_file(file, pattern, replacement, ignore.case = FALSE, fixed = FALSE)

Arguments

file

A string of the name of the file to modify.

pattern

A string of the regular expression to match.

replacement

A string of the replacement text.

ignore.case

A flag specifying whether to ignore the case.

fixed

A flag specifying whether to match pattern as is (as opposed to as a regular expression).

Value

TRUE

See Also

base::gsub()


poissonconsulting/batchgsub documentation built on Feb. 13, 2021, 6:20 p.m.