README.md

remotefile

Project Status: WIP - Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.

Access files remotely, with caching.

Installation

devtools::install_github("richfitz/remotefile")

Usage

This is designed for use with the enron corpus and I'll bundle the usage into a package at some point. But this should work for now:

path <- "https://gitlab.com/rsheets/enron_corpus/raw/master/sheets"
dest <- tempfile()
dir.create(dest)

x <- remotefile_init(dest, path)
head(remotefile_list(x))
head(remotefile_list(x, local=TRUE))

res <- remotefile_fetch(remotefile_list(x)[[555]], x)
file.exists(res)


richfitz/remotefile documentation built on May 27, 2019, 8:29 a.m.