datapack
An R package to handle data packages. Contribute to ropensci/datapack development by creating an account on GitHub.
The DataONE bundler learned to edit packages in 2017 and has coasted on that ever since
◆Recent moves
- 10mo ago
CRAN documentation and CI cleanup
A patch that says so itself — documentation fixes for CRAN notes, spelling and URL corrections, and a CI workflow updated to run full CRAN checks. Explicitly no new features.
View source ↗ - 4y ago
BagIt serialisation brought in line with the current spec
Refactors BagIt serialisation to match the updated specification, which is what keeps datapack's output readable by other BagIt tooling rather than only by itself. The rest is dependency and idiom cleanup — the hash package dropped, LazyData removed, class() comparisons replaced with inherits().
View source ↗ - 5y ago
SHA-256 becomes the default checksum algorithm
Makes SHA-256 the default hash algorithm and exposes a checksumAlgorithm argument on DataObject, so every newly created package records a stronger checksum without callers asking. A targetPath argument also lets an object declare its prov:atLocation, which matters for provenance records that need to describe where a file lived.
View source ↗ - 6y ago
Resource map metadata guaranteed; removeRelationships() added
Closes a set of resource-map correctness gaps: dc:creator is now always present, dcterms:modified is always set and updated, and a package is correctly marked modified after addAccessRule, setPublicAccess or clearAccessPolicy. Adds removeRelationships() to strip all or selected relationships from a package.
View source ↗ - 8y ago
updateMetadata no longer drops package relationships
Fixes a bug in updateMetadata() that dropped the metadata object's package relationships — a silent structural loss in exactly the editing workflow 1.3.0 had introduced one release earlier. Described in the entry as critical, and the classification of the defect matches the risk.
View source ↗ - 9y ago
Assembled data packages become editable in place
⚡ SPARKAdds the methods that make an assembled package editable — removeMember, replaceMember, selectMember, updateRelationships, updateMetadata, getValue, setValue — and lets access-policy methods act directly on a DataPackage, DataObject or SystemMetadata. Everything the package has shipped since is either repairing this editing path or hardening the archive it produces.
View source ↗