fetch_adapter: Fetch a syberia IO adapter.

Description Usage Arguments Details Value

View source: R/adapter.r

Description

IO adapters are (reference class) objects that have a read and write method. By wrapping things in an adapter, you do not have to worry about whether to use, e.g., read.csv versus s3read or write.csv versus s3store. If you are familiar with the tundra package, think of adapters as like tundra containers for importing and exporting data.

Usage

1
fetch_adapter(keyword)

Arguments

keyword

character. The keyword for the adapter (e.g., 'file', 's3', etc.)

Details

For example, we can do: fetch_adapter('file')$write(iris, '/tmp/iris.csv') and the contents of the built-in iris data set will be stored in the file "/tmp/iris.csv".

Value

an adapter object (defined in this package, syberiaStages)


robertzk/syberiaStages documentation built on May 27, 2019, 11:38 a.m.