cboettig / neonstore

:package: A local content-based storage system for NEON data
https://cboettig.github.io/neonstore
Other
8 stars 5 forks source link

neon_archive() ? #9

Closed cboettig closed 4 years ago

cboettig commented 4 years ago

As discussed with @rqthomas:

It would be nice to be able to easily archive the tables you used:

neon_archive(table = c("bet_sorting", "bet_fielddata"), "archive.zip")

This would be a thin wrapper around zip:

zip("archive.zip", neon_index("bet_sorting", "bet_fielddata")$path)

A user could unzip this anywhere, and then Sys.setenv("NEONSTORE_HOME"="/path/to/unzipped/archive") to have all neonstore functions use the archival snapshot.

Docs should note that currently this is necessary for reproducibility, because the API updates files and old files are no longer accessible.

cboettig commented 4 years ago

closed by #15