export_yaml: Export to yaml file

Description Usage Arguments Details Examples

Description

Translate an object to yaml format and write to file.

Usage

1
2
3
4
5
6
7
8
9
export_yaml(x, file, ...)

as_yaml(x, ...)

## S4 method for signature 'expressionset'
export_yaml(x, file, ...)

## S4 method for signature 'expressionset'
as_yaml(x, ...)

Arguments

x

An R object

file

A file location or connection (passed to base::write).

...

Options passed to yaml::as.yaml

Details

Both validator and indicator objects can be exported.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
v <- validator(x > 0, y > 0, x + y == z)
txt <- as_yaml(v)
cat(txt)


# NOTE: you can safely run the code below. It is enclosed in 'not run'
# statements to prevent the code from being run at test-time on CRAN
## Not run: 
export_yaml(v, file="my_rules.txt")

## End(Not run)

validate documentation built on Aug. 8, 2017, 1:06 a.m.