takes a vector of strings, adds another vector either before or after pattern provided.

add_lines(target, pattern, what, before = TRUE)

Arguments

target

the vector to add what to

pattern

where to add the what to

what

vector to add to target

before

or after the pattern