io_yamlet.yamlet: Export Yamlet

Description Usage Arguments Value See Also Examples

View source: R/io_yamlet.R

Description

Exports yamlet. The archtype method for io_yamlet. Similar to write_yamlet but returns (description of) con.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## S3 method for class 'yamlet'
io_yamlet(
  x,
  con = stdout(),
  eol = "\n",
  useBytes = FALSE,
  default_keys = getOption("yamlet_default_keys", list("label", "guide")),
  fileEncoding = getOption("encoding"),
  ...
)

Arguments

x

yamlet

con

passed to writeLines

eol

end-of-line; passed to writeLines as sep

useBytes

passed to writeLines

default_keys

character: default keys for the first n anonymous members of each element

fileEncoding

if con is character, passed to file as encoding

...

passed to as_yamlet

Value

invisible description of con: i.e., a file path

See Also

Other io: io_csv.character(), io_csv.data.frame(), io_csv(), io_res.character(), io_res(), io_table.character(), io_table.data.frame(), io_table(), io_yamlet.character(), io_yamlet.data.frame(), io_yamlet()

Examples

1
2
3
4
5
6
library(csv)
file <- system.file(package = 'yamlet', 'extdata','quinidine.csv')
x <- decorate(file)
out <- file.path(tempdir(), 'out.yamlet')
io_yamlet(as_yamlet(x), out)
io_yamlet(out)

yamlet documentation built on July 19, 2021, 1:06 a.m.