get_yaml_multiple: Extract values from yaml file

View source: R/get_yaml_multiple.R

get_yaml_multipleR Documentation

Extract values from yaml file

Description

Extract values from yaml file, like gotmtools::get_yaml_value However, an unlimited amount of keys can be provided. NOTE: this does not use a yaml parser so if there are yaml formatting errors this function will not pick them up.

Usage

get_yaml_multiple(file = "gotm.yaml", ...)

Arguments

file

filepath; to yaml file which you wish to edit

...

string key1, key2, etc.: multiple keys pointing toward the line that you want to edit in the yaml file. Keys must be listed consecutively, without skipping numbers.

Author(s)

Jorrit Mesman

Examples


## Not run: 
get_yaml_multiple(file = "example.yaml", key1 = "streams", key2 = "inflow", key3 = "file")

## End(Not run)

aemon-j/LakeEnsemblR documentation built on April 11, 2025, 10:09 p.m.