str2config {configr}R Documentation

Parse configuration string to R list object.

Description

Parse configuration string to R list object.

Usage

str2config(text, ...)

Arguments

text

JSON, YAML, INI or TOML format string.

...

Arguments pass to read.config

Value

List

Examples

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

[Package configr version 0.3.5 Index]