str2config: Parse configuration string to R list object.

Description Usage Arguments Value Examples

View source: R/read.R

Description

Parse configuration string to R list object.

Usage

1

Arguments

text

JSON, YAML, INI or TOML format string.

...

Arguments pass to read.config

Value

List

Examples

1
2
3
4
json_string <- '{"city" : "Crich"}\n'
yaml_string <- 'foo: 123\n'
json_config <- str2config(json_string)
yaml_config <- str2config(yaml_string)

configr documentation built on July 17, 2020, 5:07 p.m.