R/utils.R
add_lines.Rd
takes a vector of strings, adds another vector either before or after pattern provided.
add_lines(target, pattern, what, before = TRUE)
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 |