src_yaml: Read a YAML file containing a model

Description Usage Arguments Value See Also Examples

View source: R/src-methods.R

Description

Reads an object or a file in YAML format and returns a model YAML object.

Usage

1

Arguments

file

file path to a YAML file.

text

a YAML formatted character string.

Value

A src_yaml object.

See Also

Other source functions: src_file()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## 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)

supreme documentation built on July 8, 2020, 7:18 p.m.