R/rm_editorial_square_brackets.R
rm_editorial_square_brackets.Rd
Change text such as phas[e] out
to phase out
,
without removing square brackets denoting optional arguments.
rm_editorial_square_brackets(tex_lines)
tex_lines | Lines (as from |
---|
x <- "the BCA's call to `urgently phas[e] out all side deals'" rm_editorial_square_brackets(x)#> [1] "the BCA's call to `urgently phase out all side deals'"