Skip to content

richfitz/remotefile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

☁️📁☁️ Download files when needed

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published