read_remote_factory: create remote reader functions

Description Usage Arguments Examples

Description

create remote reader functions

Usage

1
read_remote_factory(cb, cache_method = "rds", compression = FALSE)

Arguments

cb

callback function that is applied to read the remote data

cache_method

caching method, either rds or feather

compression

whether to compress files if saving as rds, default to false

Examples

1
2
3
4
5
## Not run: 
read_remote_csv <- read_remote_factory(readr::read_csv)
data <- read_remote_csv("<remote_dir/remote_file.csv>", "~/.cache")

## End(Not run)

dpastoor/remotedata documentation built on May 15, 2019, 1:23 p.m.