Package: stamp 0.1.1

R.Andres Castaneda

stamp: Reproducible Artifact Store with Sidecars and Version History

Stores 'R' objects with sidecar metadata, including hashes, provenance, and primary keys. Keeps an immutable version history and removes older versions according to retention policies. Tracks changes and dependencies so that analytical outputs remain traceable and reproducible across sessions.

Authors:R.Andres Castaneda [aut, cre, cph], Diana C. Garcia Rojas [aut, cph]

stamp_0.1.1.tar.gz
stamp_0.1.1.zip(r-4.7-any)stamp_0.1.1.zip(r-4.6-any)
stamp_0.1.1.tar.gz(r-4.7-any)stamp_0.1.1.tar.gz(r-4.6-any)
stamp_0.1.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
stamp/json (API)

# Install 'stamp' in R:
install.packages('stamp', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/randrescastaneda/stamp/issues

Pkgdown/docs site:https://randrescastaneda.github.io

On CRAN:

Conda:

3.92 score 21 scripts 39 exports 11 dependencies

Last updated from:8270f6030b. Checks:6 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK251
source / vignettesOK215
linux-releaseOK263
windows-develOK247
windows-releaseOK305
wasm-releaseOK128

Exports:st_add_pkst_alias_getst_alias_listst_buildersst_catalog_queryst_changedst_changed_reasonst_childrenst_clear_buildersst_execution_infost_filterst_formatsst_get_pkst_hash_objst_infost_initst_inspect_pkst_is_stalest_latestst_lineagest_loadst_load_versionst_optsst_opts_getst_opts_resetst_pkst_plan_rebuildst_prune_versionsst_read_sidecarst_rebuildst_record_outcomest_register_builderst_register_formatst_restorest_savest_should_savest_switchst_versionsst_with_pk

Dependencies:charportclidata.tablefsjsonlitenanoparquetqs2RcppRcppParallelrlangsecretbase

Builders, Plans, and Rebuilds
Key concepts | Minimal example (single-target) | Multi-function code metadata | Legacy Modes: Strict And Propagate | Tips & best practices | Try it locally | Appendix: example plan interpretation | Request-Aware Execution | Retained Output And Failures | Typed Semantic History

Last update: 2026-12-04
Started: 2026-12-04

Hashing, Change Detection and Versions
Recommended options | Save with hashes (and skip if content identical) | Inspect sidecars & metadata | Change detection (without writing) | Loading specific versions | Where are versions stored? | Integrity checks on load (optional) | Troubleshooting | Tips & conventions

Last update: 2026-12-04
Started: 2026-12-04

Lineage and Rebuilds
Setup a tiny graph A → B(A) → C(B) | Inspect lineage | Make a change upstream & detect staleness | Plan rebuilds | Register builders and rebuild in level order | Inspect snapshots on disk | Takeaways

Last update: 2026-12-04
Started: 2026-12-04

Setup and Basics
1. Initialize a project | 2. Options (st_opts()) | 3. Paths and format registry | 4. Save & load (atomic, with sidecar metadata) | 4.1 Loading specific versions | 5. Sidecars (quick metadata) | 6. Versions, lineage, and inspection | 7. Primary-key helpers (optional) | 8. Retention / pruning | 9. Tips and conventions

Last update: 2026-12-04
Started: 2026-12-04

Stamp
The Problem | The Solution | Harmonizing Economic Indicators with Versioning & Lineage | 1. Simulate and Save Input Micro Data | 2. Simulate and Save Macro Data (CPI, GDP, Population) | 3. Aggregation Function foo() and Output Table | 4. Modify CPI (COL 2012) → New Version & Staleness | Builders, plans and rebuilds — concepts and how we use them here | 5. Add New Data (ARG 2015 Welfare) | 6. Summary

Last update: 2026-12-04
Started: 2026-12-04

The .stamp Directory: Structure and Internals
Overview | 1. Creation and Initialization | 1.1 Creating .stamp/ with st_init() | 1.2 Re-running st_init(): Safe and Non-Destructive | 2. Directory Structure Explained | 2.1 High-Level Layout | 2.2 State Directory: .stamp/ | 2.3 The Catalog: catalog.qs2 | 2.4 Version Snapshots: Per-Artifact versions/ | 2.5 Artifact Storage: Direct-Path Model | Why This Structure? | Real-World Example | Loading Artifacts | 3. How Versioning Works | 3.1 The Version Creation Process | 3.2 Version Identifiers | 3.3 Versioning Modes | 4. Developer Details | 4.1 Key Internal Functions | 4.2 Concurrency and Safety | File-Based Locking Explained | Atomic Operations | 5. Inspecting .stamp/ Programmatically | 5.1 User-Level Inspection | 5.2 Direct Catalog Access (Advanced) | 5.3 Exploring Snapshots | 6. Troubleshooting | 6.1 Missing or Corrupt .stamp/ Directory | 6.2 Catalog Schema Mismatch | 6.3 Disk Space Issues | 6.4 Version Timestamp Issues | 6.5 Lock File Issues | 7. Best Practices | 7.1 Version Control Integration | 7.2 Backup Strategy | 8. Summary | Further Reading

Last update: 2026-12-04
Started: 2026-12-04

Using Aliases with stamp
Overview | Setup | Saving and Loading with Aliases | Switching the Default Alias | Constraints and Conflicts | Best Practices | Troubleshooting | Notes

Last update: 2026-12-04
Started: 2026-12-04

Version Retention, Pruning, and Table Metadata
Minimal project scaffold (temp) | Ad-hoc pruning (explicit runs) | Keep the n latest for a specific artifact | Keep by recency window across the entire catalog | Combine count + recency (union semantics) | Automatic pruning (on every st_save()) | Primary-key metadata & load-time checks | Record PK at save time (recommended) | Inspect / repair PK later | Load-time behavior & options | Why PKs matter (joins & merges) | Catalog corruption & safety | Sidecar metadata (quick reference) | Recommendations & Recipes | FAQ

Last update: 2026-12-04
Started: 2026-12-04

Readme and manuals

Help Manual

Help pageTopics
Add or repair primary-key metadata in an artifact sidecarst_add_pk
Get a registered alias configurationst_alias_get
List registered stamp aliases in the current sessionst_alias_list
List registered buildersst_builders
Query latest version metadata for all artifacts in an aliasst_catalog_query
Check whether an artifact would change if saved nowst_changed
Explain why an artifact would changest_changed_reason
List children (reverse lineage) of an artifactst_children
Clear all builders (or only those for a given path)st_clear_builders
Inspect durable execution proof without loading artifact datast_execution_info
Filter a data.frame by primary-key values (or arbitrary columns)st_filter
Inspect available formatsst_formats
Read primary-key keys from a data.frame or sidecar/meta listst_get_pk
Stable SipHash-1-3 of an R objectst_hash_obj
Inspect an artifact's current status (sidecar + catalog + snapshot location)st_info
Initialize stamp project structurest_init
Inspect primary-key of an artifact from its sidecarst_inspect_pk
Inspect parent staleness or requested artifact currentnessst_is_stale
Get the latest version_id for an artifact pathst_latest
Show immediate or recursive parents for an artifactst_lineage
Load an object from disk (format auto-detected; optional integrity checks)st_load
Load a specific version of an artifactst_load_version
Get or set package optionsst_opts
Convenience getter (optional sugar)st_opts_get
Reset all options to package defaultsst_opts_reset
Normalize a primary-key specificationst_pk
Plan a rebuild of descendants when parents changedst_plan_rebuild
Prune stored versions according to a retention policyst_prune_versions
Read current or exact historical sidecar metadatast_read_sidecar
Rebuild planned artifacts in dependency orderst_rebuild
Record externally classified failed or blocked execution factsst_record_outcome
Register a builder for an artifact pathst_register_builder
Register or override a format handlerst_register_format
Restore artifact to a previous versionst_restore
Save an R object to disk with metadata & versioning (atomic move)st_save
Decide if a save should proceed given current st_opts() Uses versioning policy and code-change rule.st_should_save
Switch the session's default aliasst_switch
List versions for an artifact pathst_versions
Attach primary-key metadata to a data.frame (in-memory)st_with_pk