class with methods for serializing via the yaml package
Create a new YAML object
YAML$new(path = NULL)
(character) path to the cassette, excluding the cassette directory and the file extension
Serializes the given hash using internal fxn write_yaml
YAML$serialize(x, path, bytes)
(list) the object to serialize
(character) the file path
(logical) whether to preserve exact body bytes or not
(character) the YAML string to write to disk
Deserializes the content at the path using yaml::yaml.load_file
(list) the deserialized object, an R list
The objects of this class are cloneable with this method.
YAML$clone(deep = FALSE)
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.