Brick-proof, reproducible data capsules for R.
rmoriebricklayer resolves open-data sources, records and verifies
provenance, validates downloaded data against a pinned schema, and falls
back to schema-driven synthetic data when the real source is unreachable —
so any analysis result can be traced back to its exact inputs.
resolve_via_ckan() / resolve_via_ckan_search()
locate resources through a portal's package_show / package_search
endpoints.load_provenance(), make_manifest(), record(),
write_manifest_json(), and write_summary_txt() capture every run as a
manifest plus a plain-language summary.sha256_file() / verify_sha256() hash and verify
downloads; download_data() / friendly_download() fetch with a Wayback
Machine fallback.validate_schema() / apply_schema_validation()
check data against a pinned schema.make_synthetic_column() / make_synthetic_csv()
generate schema-driven stand-ins when the real source is down, so a
pipeline still runs end-to-end.install.packages(
"rmoriebricklayer",
repos = c("https://rootcoder007.r-universe.dev",
"https://cloud.r-project.org")
)
Development version from GitHub:
# install.packages("remotes")
remotes::install_github("rootcoder007/rmorie-bricklayer")
library(rmoriebricklayer)
prov <- load_provenance("provenance.json") # pinned source + schema + hash
res <- resolve_via_ckan(prov) # find the resource on the portal
path <- friendly_download(res$url, "data.csv") # download (Wayback fallback)
verify_sha256(path, prov$sha256) # integrity check
df <- validate_schema(read.csv(path), prov) # schema-validated data frame
man <- make_manifest(project = "my-study")
record(man, "input", path) # trace the input
write_manifest_json(man, "manifest.json")
rmoriebricklayer is the reproducibility / provenance layer of the
MORIE ecosystem, alongside
rmorie and
rmoriedata.
If you use rmoriebricklayer in your research, please cite the software:
Ruhela, V. S. (2026). rmoriebricklayer: Reproducible Data Capsules with Provenance and Fallback. https://github.com/rootcoder007/rmorie-bricklayer
BibTeX (or run citation("rmoriebricklayer") after installation for the entry
stamped with the exact installed version, sourced from inst/CITATION):
@Manual{ruhela_rmoriebricklayer_2026,
title = {rmoriebricklayer: Reproducible Data Capsules with Provenance and Fallback},
author = {Ruhela, Vansh Singh},
year = {2026},
url = {https://github.com/rootcoder007/rmorie-bricklayer}
}
See CITATION.cff for the
machine-readable metadata GitHub's "Cite this repository" button uses.
AGPL-3.0-or-later.
Please note that this project is released with a Contributor Code of Conduct. By contributing, you agree to abide by its terms.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.