The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
yaml provides R bindings to libyaml, a fast YAML parser and emitter.
Install from CRAN:
install.packages("yaml")Or install the development version from GitHub:
# install.packages("pak")
pak::pak("r-lib/r-yaml")library(yaml)Parse YAML with yaml.load() or
read_yaml():
yaml.load(
"
- 1
- 2
- 3
"
)
#> [1] 1 2 3
yaml.load(
"
a: 1
b: 2
"
)
#> $a
#> [1] 1
#>
#> $b
#> [1] 2Convert R objects to YAML with as.yaml() or
write_yaml():
cat(as.yaml(list(a = 1:3, b = 4:6)))
#> a:
#> - 1
#> - 2
#> - 3
#> b:
#> - 4
#> - 5
#> - 6See vignette("yaml") for more details on handlers,
formatting options, and advanced usage.
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.