Split text into roxygen and non-roxygen example segments
split_roxygen_segments(text, roxygen_examples)A list with two elements:
A list that contains elements grouped into roxygen and non-roxygen
sections. This list is named separated.
An integer vector with the indices that correspond to roxygen code
examples in separated.
Roxygen comments
Integer sequence that indicates which lines in text
are roxygen examples. Most conveniently obtained with
identify_start_to_stop_of_roxygen_examples_from_text.