powered by
Change text such as phas[e] out to phase out, without removing square brackets denoting optional arguments.
phas[e] out
phase out
rm_editorial_square_brackets(tex_lines)
Lines (as from readLines).
readLines
# NOT RUN { x <- "the BCA's call to `urgently phas[e] out all side deals'" rm_editorial_square_brackets(x) # }
Run the code above in your browser using DataLab