Skip to content

Commit 45dddb6

Browse files
authored
Merge pull request #8 from ResearchObject/dev
CRAN v0.1.0: Enhance RO-Crate handling and validation functions
2 parents d166627 + d88a724 commit 45dddb6

76 files changed

Lines changed: 5263 additions & 2054 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.Rbuildignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,14 @@
55
^cran-comments.md$
66
^README.Rmd$
77
^LICENSE.md$
8-
^inst$
8+
^inst/images$
9+
^inst/R\.ignore$
910
^cran-comments\.md$
1011
^_pkgdown\.yml$
1112
^docs$
1213
^pkgdown$
1314
^CRAN-SUBMISSION$
15+
^data-raw$
16+
^doc$
17+
^Meta$
18+
^LICENSE\.md$

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,6 @@ docs
4040
CRAN-SUBMISSION
4141
cran-comments.md
4242
*.html
43+
inst/doc
44+
/doc/
45+
/Meta/

DESCRIPTION

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,36 @@
11
Package: rocrateR
2-
Title: RO-Crate R Package Wrapper
3-
Version: 0.0.1
2+
Title: Tools for Creating and Manipulating RO-Crates
3+
Version: 0.1.0.9000
44
Authors@R: c(
55
person(given = "Roberto",
66
family = "Villegas-Diaz",
77
role = c("aut", "cre"),
88
email = "r.villegas-diaz@outlook.com",
99
comment = c(ORCID = "0000-0001-5036-8661")),
10+
person(given = "Rebecca",
11+
family = "Wilson",
12+
role = c("aut"),
13+
comment = c(ORCID = "0000-0003-2294-593X")),
14+
person(given = "Olly",
15+
family = "Butters",
16+
role = c("aut"),
17+
comment = c(ORCID = "0000-0003-0354-8461")),
18+
person(given = "Stuart",
19+
family = "Wheater",
20+
role = c("aut"),
21+
comment = c(ORCID = "0009-0003-2419-1964")),
1022
person("Research Object community", role = c("cph")))
11-
Description: R package for creating, manipulating and reading RO-Crates. Latest
12-
supported version of the specification: <https://w3id.org/ro/crate/1.2/>.
23+
Description: Provides tools for creating, manipulating and reading Research
24+
Object Crates (RO-Crates), a lightweight approach to packaging research
25+
data with structured metadata. Includes utilities for metadata generation,
26+
entity management, validation and reading existing RO-Crates following
27+
the specification <https://w3id.org/ro/crate/1.2/>.
1328
License: MIT + file LICENSE
1429
Suggests:
15-
spelling,
30+
fs,
31+
knitr,
32+
rmarkdown,
33+
spelling,
1634
testthat (>= 3.0.0)
1735
Config/testthat/edition: 3
1836
Encoding: UTF-8
@@ -24,7 +42,8 @@ RoxygenNote: 7.3.3
2442
Imports:
2543
digest,
2644
jsonlite,
27-
tibble,
45+
lifecycle,
2846
zip
2947
Depends:
3048
R (>= 4.1.0)
49+
VignetteBuilder: knitr

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
YEAR: 2025
1+
YEAR: 2026
22
COPYRIGHT HOLDER: Research Object community

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# MIT License
22

3-
Copyright (c) 2025 Research Object community
3+
Copyright (c) 2026 Research Object community
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

NAMESPACE

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,39 @@
22

33
S3method(bag_rocrate,character)
44
S3method(bag_rocrate,rocrate)
5-
S3method(entity,default)
5+
S3method(load_rocrate,character)
6+
S3method(load_rocrate,rocrate)
67
S3method(print,entity)
78
S3method(print,rocrate)
9+
S3method(print,rocrate_validation)
10+
S3method(print,summary.entity)
11+
S3method(print,summary.rocrate)
12+
S3method(summary,entity)
13+
S3method(summary,rocrate)
14+
export(add_author)
15+
export(add_dataset)
816
export(add_entities)
917
export(add_entity)
1018
export(add_entity_value)
19+
export(add_notebook)
20+
export(add_project)
21+
export(add_readme)
22+
export(add_software)
23+
export(add_workflow)
1124
export(bag_rocrate)
25+
export(crate_project)
1226
export(entity)
27+
export(extract_content)
1328
export(get_entity)
1429
export(is_rocrate)
1530
export(is_rocrate_bag)
31+
export(load_rocrate)
32+
export(load_rocrate_bag)
1633
export(read_rocrate)
1734
export(remove_entities)
1835
export(remove_entity)
1936
export(rocrate)
2037
export(rocrate_5s)
2138
export(unbag_rocrate)
39+
export(validate_rocrate)
2240
export(write_rocrate)

NEWS.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
# rocrateR (development version)
2+
3+
# rocrateR 0.1.0
4+
5+
* Added higher level function to load RO-Crates from various inputs,
6+
`load_rocrate`.
7+
* Added higher level function to validate RO-Crate and display report with
8+
errors and warnings (if any was found), `validate_rocrate`.
9+
* Defined new checks for RO-Crate validation to ignore system specific
10+
directories (e.g., `__MACOSX` on macOS).
11+
* Refactored functions to streamline checks, including `is_rocrate`.
12+
* Updated `get_entity` so it takes a vector for `id` and `type`, reuses the
13+
shorter vector (only if the length 1), or errors if vectors have different
14+
lengths.
15+
* Updated `is_rocrate_bag` so it returns a boolean value, indicating the
16+
validity of the given RO-Crate bag. Previously, it returned a path to the
17+
root of the RO-Crate.
18+
* Updated `unbag_rocrate` to return the path to RO-Crate root _visibly_.
19+
* `add_entities()` is deprecated. Use `add_entity()` instead.
20+
* `load_rocrate_bag()` is deprecated. Use `load_rocrate()` instead. Note that
21+
validation must be done as a separate step using `validate_rocrate()`.
22+
* `read_rocrate()` is deprecated. Use `load_rocrate()` instead.
23+
* `remove_entities()` is deprecated. Use `remove_entity()` instead.
24+
* `entity(x=)` renamed to `entity(id=)`.
25+
126
# rocrateR 0.0.1
227

328
* Initial CRAN submission.

0 commit comments

Comments
 (0)