The goal of yum
is to provide a number of functions to work with files that contain one or more YAML fragments. Several packages (the rock
, dct
, and justifier
packages) leverage the YAML format to facilitate systematic encoding of information in a format that is both machine- and human-readable. The yum package provides a number of functions to facilitate this in a uniform manner with minimal dependencies (i.e. only suggests the yaml
and data.tree
packages to enable additional functionality).
You can install the released version of yum from CRAN with:
install.packages("yum");
You can install the development version of yum
from GitHub with:
devtools::install_github("matherion/yum");
(assuming you have devtools
installed; otherwise, install that first using the install.packages
function)
yum
was created to have minimal dependencies. However, you will usually want to have either [yaml::yaml] or [data.tree::data.tree] available to be able to actually load (parse) the extracted YAML fragments and organise them in a tree if they have a hierarchical structure. Therefore, yum
does have some dependencies through those two suggested packages. Of these, yaml
only has one dependency, but data.tree
has a few more. Specifically, the dependency network looks like this: