read_yaml: Parses YAML file with a simple R handler

Description Usage Arguments Examples

View source: R/read_yaml.R

Description

Parses YAML file with a simple R handler

Usage

1
2
3
read_yaml(string, ...)

read_yaml_file(input, ...)

Arguments

string

YAML string to read

...

other arguments

input

YAML file to read

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
y <- "num: 1
key0:
  key1: value1
key2:
  key22: value22
rcode_num: !r 1:5
rcode_ch: !r paste(LETTERS[1:10], collapse=', ')
date: !r Sys.Date()
"
read_yaml(y)

mbojan/mbtools documentation built on Nov. 9, 2017, 3:21 p.m.