Package: stamp 0.0.11

stamp: Reproducible Artifact Store with Sidecars, Versions, and Partitions

Stamp saves R objects with sidecar metadata (hashes, provenance, PKs), keeps version history, prunes old versions, and supports Hive-style partitions.

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

stamp_0.0.11.tar.gz
stamp_0.0.11.zip(r-4.7-any)stamp_0.0.11.zip(r-4.6-any)stamp_0.0.11.zip(r-4.5-any)
stamp_0.0.11.tgz(r-4.6-any)stamp_0.0.11.tgz(r-4.5-any)
stamp_0.0.11.tar.gz(r-4.7-any)stamp_0.0.11.tar.gz(r-4.6-any)
stamp_0.0.11.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://randrescastaneda.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:

5.93 score 1 stars 21 scripts 43 exports 11 dependencies

Last updated from:b6e5e2c551. Checks:4 OK, 5 ERROR. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK149
source / vignettesOK283
linux-releaseOK158
macos-releaseERROR158
macos-oldrelERROR166
windows-develERROR67
windows-releaseERROR83
windows-oldrelERROR90
wasm-releaseOK118

Exports:st_add_pkst_alias_getst_alias_listst_buildersst_catalog_queryst_changedst_changed_reasonst_childrenst_clear_buildersst_filterst_formatsst_get_pkst_hash_objst_infost_initst_inspect_pkst_is_stalest_latestst_lineagest_list_partsst_loadst_load_partsst_load_versionst_optsst_opts_getst_opts_resetst_part_pathst_pathst_pkst_plan_rebuildst_prune_versionsst_read_sidecarst_rebuildst_register_builderst_register_formatst_restorest_savest_save_partst_should_savest_switchst_versionsst_with_pkst_write_parts

Dependencies:charportclidata.tablefsjsonlitenanoparquetqs2RcppRcppParallelrlangsecretbase

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-03-02
Started: 2025-11-10

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-03-02
Started: 2025-11-10

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-03-02
Started: 2025-11-10

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. Partitioned Workflow for Partial Re-execution | Partial Re-execution After CPI Change | 7. Summary

Last update: 2026-03-02
Started: 2023-01-24

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-03-02
Started: 2026-01-12

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-03-02
Started: 2026-01-28

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) | Partitioned datasets (Hive-style) | Create partitions & save parts | Discover & load | Recommendations & Recipes | FAQ

Last update: 2026-03-02
Started: 2025-11-10

Working with Partitioned Datasets
Quick Start | Hive-Style Partitioning | Auto-Partitioning with st_write_parts() | Benefits | Format Selection | Loading Partitions | Load All Partitions | Exact Match Filtering (Named List) | Expression-Based Filtering (Formula) | Filter Expression Capabilities | Columnar Loading (Column Selection) | Native vs. Fallback Column Selection | Combining Filters and Column Selection | Discovering Partitions with st_list_parts() | Single Partition Operations | Primary Keys and Partitions | Performance Considerations | When to Use Partitioning | Partition Key Selection | Memory Optimization | Advanced Patterns | Incremental Updates | Processing Pipeline | Comparison with Arrow/DuckDB | Summary

Last update: 2026-01-28
Started: 2025-11-26

Builders, Plans, and Rebuilds
Key concepts | Minimal example (single-target) | Multi-function code metadata | Partitioned targets and partial rebuilds | Modes: strict vs relaxed | Tips & best practices | Try it locally | Appendix: example plan interpretation

Last update: 2025-11-12
Started: 2025-11-12

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
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
Is a child artifact stale because its parents advanced?st_is_stale
Get the latest version_id for an artifact pathst_latest
Show immediate or recursive parents for an artifactst_lineage
List available partitions under a base directoryst_list_parts
Load an object from disk (format auto-detected; optional integrity checks)st_load
Load and row-bind partitioned datast_load_parts
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
Build a concrete partition path under a base directoryst_part_path
Declare a path (with optional format & partition hint)st_path
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 sidecar metadata (internal)st_read_sidecar
Rebuild artifacts from a plan (level order)st_rebuild
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
Save a single partition (uses st_save under the hood)st_save_part
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
Auto-partition and save a dataset (Hive-style)st_write_parts