View source: R/get_yaml_value.R
get_yaml_value | R Documentation |
Inputs values into yaml file by locating the label and key within the yaml file. Preserves comments (#) if present. NOTE: this does not use a yaml parser so if there are yaml formatting errors this function will not pick them up.
get_yaml_value(file = "gotm.yaml", label, key)
file |
filepath; to .yaml which you wish to edit |
label |
string; which corresponds to section where the key is located |
key |
string; name of key in which to input the value |
Tadhg Moore
yaml_file <- system.file('extdata/gotm.yaml', package = 'GOTMr')
get_yaml_value(file = yaml_file, label = 'airp', key = 'file')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.