src_yaml | R Documentation |
Reads an object or a file in YAML format and returns a model YAML object.
src_yaml(file = NULL, text = NULL)
file |
file path to a YAML file. |
text |
a YAML formatted character string. |
A src_yaml
object.
Other source functions:
src_file()
## Read from a file:
path <- example_yaml()
src_yaml(path)
## Read from an (text) object:
model <- "
- name: childModuleA
input: [input.data, reactive]
src: package
- name: childModuleB
input: selected.model
"
src_yaml(text = model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.