# NOT RUN {
### Create simple text vector with the right delimiters
simpleExampleText <-
c(
"---",
"First YAML fragment",
"---",
"Outside of YAML",
"This, too.",
"---",
"Second fragment",
"---",
"Also outside of YAML",
"Another one outside",
"Last one"
);
yum::find_yaml_fragment_indices(
text=simpleExampleText
);
yum::find_yaml_fragment_indices(
text=simpleExampleText,
returnFragmentIndices = FALSE
);
yum::find_yaml_fragment_indices(
text=simpleExampleText,
invert = TRUE
);
# }
Run the code above in your browser using DataLab