
Imports or exports documented tables. Generic, with methods
that extend read.table
and write.table
.
io_table(x, ...)
object
passed arguments
See methods.
Other io:
io_csv.character()
,
io_csv.data.frame()
,
io_csv()
,
io_res.character()
,
io_res()
,
io_table.character()
,
io_table.data.frame()
,
io_yamlet.character()
,
io_yamlet.data.frame()
,
io_yamlet.yamlet()
,
io_yamlet()
# NOT RUN {
file <- system.file(package = 'yamlet', 'extdata','quinidine.csv')
x <- decorate(file)
out <- file.path(tempdir(), 'out.tab')
foo <- io_table(x, out)
identical(out, foo)
y <- io_table(foo, as.is = TRUE)
attr(x, 'source') <- NULL
rownames(x) <- NULL
rownames(y) <- NULL
identical(x, y) # lossless 'round-trip'
# }
Run the code above in your browser using DataLab