Match the corresponding indices of (YAML) delimiters in a sequantial list
match_consecutive_delimiters(
x,
errorOnInvalidX = FALSE,
errorOnOdd = FALSE,
onOddIgnoreFirst = FALSE
)
The vector with delimiter indices
Whether to return NA
(if FALSE
) or throw an
error (if TRUE
) when x
is NULL
, NA
, or has less than 2 elements.
Whether to throw an error if the number of delimiter indices is odd.
If the number of delimiter indices is odd and no
error is thrown, whether to ignore the first (TRUE
) or the last (FALSE
)
delimiter.