Learn R Programming

configr (version 0.3.5)

str2config: 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

Run this code
# NOT RUN {
json_string <- '{"city" : "Crich"}\n'
yaml_string <- 'foo: 123\n'
json_config <- str2config(json_string)
yaml_config <- str2config(yaml_string)
# }

Run the code above in your browser using DataLab