powered by
Get indices of YAML delimiters
yaml_delimiter_indices(x)
The character vector.
A numeric vector.
# NOT RUN { yaml_delimiter_indices( c("not here", "---", "above this one", "but nothing here", "below this one, too", "---") ); ### [1] 2 6 # }
Run the code above in your browser using DataLab