Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/yamlPublic

R package for converting objects to and from YAML

License

Unknown, Unknown licenses found

Licenses found

Unknown
LICENSE
Unknown
COPYING
NotificationsYou must be signed in to change notification settings

r-lib/yaml

Repository files navigation

R-CMD-checkCodecov test coverage

yaml provides R bindings tolibyaml,a fastYAML parser and emitter.

Installation

Install from CRAN:

install.packages("yaml")

Or install the development version from GitHub:

# install.packages("pak")pak::pak("r-lib/r-yaml")

Usage

library(yaml)

Parse YAML withyaml.load() orread_yaml():

yaml.load("- 1- 2- 3")#> [1] 1 2 3yaml.load("a: 1b: 2")#> $a#> [1] 1#>#> $b#> [1] 2

Convert R objects to YAML withas.yaml() orwrite_yaml():

cat(as.yaml(list(a=1:3,b=4:6)))#> a:#> - 1#> - 2#> - 3#> b:#> - 4#> - 5#> - 6

Seevignette("yaml") for more details on handlers, formatting options,and advanced usage.

About

R package for converting objects to and from YAML

Topics

Resources

License

Unknown, Unknown licenses found

Licenses found

Unknown
LICENSE
Unknown
COPYING

Stars

Watchers

Forks

Packages

No packages published

Contributors18


[8]ページ先頭

©2009-2025 Movatter.jp