Skip to contents

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)

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))