io_res.decorated: Export Resolved Table

View source: R/io_res.R

io_res.decoratedR Documentation

Export Resolved Table

Description

Exports a documented table. "Desolves" attributes to standard form, then writes data and metadata to storage. A short-cut for (io_csv(desolve(x)).

Usage

## S3 method for class 'decorated'
io_res(x, file = "", ...)

Arguments

x

decorated; passed to io_csv.data.frame

file

passed to io_csv.data.frame

...

passed to io_csv.character and desolve.decorated

Value

decorated (invisible)

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.yamlet(), io_yamlet()

Other interface: canonical.decorated(), classified.data.frame(), decorate.character(), decorate.data.frame(), desolve.decorated(), ggplot.decorated(), io_csv.character(), io_csv.data.frame(), io_res.character(), io_table.character(), io_table.data.frame(), io_yamlet.character(), io_yamlet.data.frame(), is_parseable.default(), mimic.default(), modify.default(), promote.list(), read_yamlet(), resolve.decorated(), selected.default(), write_yamlet()

Examples

library(magrittr)
file <- system.file(package = 'yamlet', 'extdata','quinidine.csv')
x <- io_res(file)
tmp <- tempfile(fileext = '.csv')
io_res(x, tmp)
a <- io_csv(tmp, source = FALSE)
b <- io_csv(file, source = FALSE)
stopifnot(identical(a, b))

yamlet documentation built on Oct. 6, 2023, 9:07 a.m.