Tools for Creating and Manipulating RO-Crates
Overview
Provides tools for creating, manipulating and reading Research Object Crates (RO-Crates), a lightweight approach to packaging research data with structured metadata. Includes utilities for metadata generation, entity management, validation and reading existing RO-Crates following the specification https://w3id.org/ro/crate/1.2/.
- Added higher level function to load RO-Crates from various inputs,
load_rocrate.
- Added higher level function to validate RO-Crate and display report with
errors and warnings (if any was found), validate_rocrate.
- Defined new checks for RO-Crate validation to ignore system specific
directories (e.g., __MACOSX on macOS).
- Refactored functions to streamline checks, including
is_rocrate. - Updated
get_entityso it takes a vector foridandtype, reuses the
shorter vector (only if the length 1), or errors if vectors have different
lengths.
- Updated
is_rocrate_bagso it returns a boolean value, indicating the
validity of the given RO-Crate bag. Previously, it returned a path to the
Show all changes in 0.1.0Hide the rest of the changes in 0.1.0
root of the RO-Crate.
- Updated
unbag_rocrateto return the path to RO-Crate root _visibly_. add_entities()is deprecated. Useadd_entity()instead.load_rocrate_bag()is deprecated. Useload_rocrate()instead. Note that
validation must be done as a separate step using validate_rocrate().
read_rocrate()is deprecated. Useload_rocrate()instead.remove_entities()is deprecated. Useremove_entity()instead.entity(x=)renamed toentity(id=).
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-08
- ERROR12 OK, 1 ERROR2026-06-07
- OK14 OK2026-03-10
Documentation
- Help pages
- 30 (1 internal)includes a package overview page
- Examples that run
- 100%16 run in a plain check
- Exported functions with examples
- 56%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 60%
- Median days to close, 50 most recently updated closed issues
- 76
- Median days to close, 50 most recently updated closed PRs
- 15
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
6 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/researchobject/ro-crate-r on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Dependencies
Installing rocrateR adds 6 packages (5 with compiled code, 3.1 MB of source tarballs). Heaviest: jsonlite 1.0 MB, rlang 766 KB, cli 629 KB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 0.1.0Latest2026-04-08 · current release · diff ↗ ·
added 12 exports
add_author, add_dataset, add_notebook, add_project, add_readme, add_software, add_workflow, crate_project, extract_content, load_rocrate, load_rocrate_bag, validate_rocrate - 0.0.12025-11-07
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2025-11-07
- Total releases
- 2 / 1 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.1.0
- Download size
- 103 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("rocrateR")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.