NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

archivist: Tools for Storing, Restoring and Searching for R Objects

Przemysław Biecek, Marcin KosińskiOpenalex Unknown 2014 · OpenAlex

Abstract

Data exploration and modelling is a process in which a lot of data artifacts are produced. Artifacts like: subsets, data aggregates, plots, statistical models, different versions of data sets and different versions of results. The more projects we work with the more artifacts are produced and the harder it is to manage these artifacts. Archivist helps to store and manage artifacts created in R. Archivist allows you to store selected artifacts as a binary files together with their metadata and relations. Archivist allows to share artifacts with others, either through shared folder or github. Archivist allows to look for already created artifacts by using it's class, name, date of the creation or other properties. Makes it easy to restore such artifacts. Archivist allows to check if new artifact is the exact copy that was produced some time ago. That might be useful either for testing or caching.

Introduction

The iterative nature of data science often leads to a "data artifact explosion." Researchers frequently generate numerous intermediate data subsets, statistical models, and diagnostic plots. As projects scale, tracking which specific version of a dataset produced a particular model or retrieving a plot from months prior becomes increasingly difficult. The archivist package for R addresses these challenges by providing a robust framework for storing, versioning, and retrieving R objects.

Technical Framework

archivist implements a content-addressable storage system. A repository consists of an SQLite database (backpack.db) for metadata and a gallery folder containing binary .rda files. Every artifact is assigned a unique 32-character MD5 hash based on its content, ensuring that every step of a pipeline is reproducible and auditable.

Automated Archiving and Tagging

The package introduces the %a% operator, an "archiving pipe" that automatically saves intermediate results in a code chain. Furthermore, archivist automatically extracts "Tags" based on object classes (e.g., coefficients for models). Users can also manually manage tags to enhance searchability.

Reproducibility and Remote Collaboration

A key feature of archivist is its ability to integrate with remote repositories like GitHub or Bitbucket. This allows teams to share specific objects via a simple URL or hash. Functions such as addHooksToPrint facilitate this by embedding links to remote data directly within R Markdown reports, using parameters to define the remote environment.

Parameters for configuring archiving hooks and remote repository settings.

Lineage Tracking and History Reconstruction

One of the most powerful tools in the archivist suite is the ability to reconstruct the "pedigree" of an object. The ahistory function allows users to trace the lineage of a final output back through its constituent data subsets and transformations, utilizing the MD5 hash system to ensure accuracy.

Arguments for the ahistory function used to reconstruct artifact lineage.

Conclusion

By treating R objects as searchable database entities, archivist streamlines the management of complex data science workflows. Its focus on MD5 hashing, lineage tracking, and remote integration makes it an essential tool for ensuring the reproducibility and shareability of research artifacts.

Summary updated

BibTeX
@inproceedings{biecek2014archivist,
  author = {Przemysław Biecek and Marcin Kosiński},
  title = {{archivist: Tools for Storing, Restoring and Searching for R Objects}},
  booktitle = {Openalex Unknown},
  year = {2014},
  doi = {10.32614/cran.package.archivist},
}
Figure