yaml_delimiter_indices: Get indices of YAML delimiters

View source: R/yaml_delimiter_indices.R

yaml_delimiter_indicesR Documentation

Get indices of YAML delimiters

Description

Get indices of YAML delimiters

Usage

yaml_delimiter_indices(x)

Arguments

x

The character vector.

Value

A numeric vector.

Examples

yaml_delimiter_indices(
  c("not here",
    "---",
    "above this one",
    "but nothing here",
    "below this one, too",
    "---")
);
### [1] 2 6

rock documentation built on Dec. 28, 2022, 1:55 a.m.