Get all lines between tagged lines. The tagged lines themselves may be in- or excluded from the selection.
get_lines_between_tags(
file_name,
keep_tagged_lines = TRUE,
begin_pattern = "ROXYGEN_START",
end_pattern = "ROXYGEN_STOP",
from_first_line = TRUE,
to_last_line = TRUE
)
A character vector of matching lines.
The name of the R code file to be parsed.
Keep tagged lines output?
A pattern that marks the line beginning a roxygen2 chunk.
A pattern that marks the line ending a roxygen2 chunk.
Use first line as tagged line if first tag found
matches the end_pattern
?
Use last line as tagged line if last tag found matches
the begin_pattern
?