https://github.com/richfitz/remotefile
:cloud::file_folder::cloud: Download files when needed
https://github.com/richfitz/remotefile
Last synced: 12 months ago
JSON representation
:cloud::file_folder::cloud: Download files when needed
- Host: GitHub
- URL: https://github.com/richfitz/remotefile
- Owner: richfitz
- License: other
- Created: 2016-05-26T16:16:02.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-06-16T08:02:13.000Z (about 10 years ago)
- Last Synced: 2025-03-14T03:45:20.198Z (over 1 year ago)
- Language: R
- Homepage:
- Size: 8.79 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# remotefile
[](http://www.repostatus.org/#wip)
Access files remotely, with caching.
# Installation
```r
devtools::install_github("richfitz/remotefile")
```
# Usage
This is designed for use with the [enron corpus](https://gitlab.com/rsheets/enron_corpus) and I'll bundle the usage into a package at some point. But this should work for now:
```r
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)
```