Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
133d808
Drop development portion from version number and update description
villegar Oct 6, 2025
65f957e
Delete lifecycle badge, update URLs to point to ResearchObject repo, …
villegar Oct 6, 2025
cde04c8
Update the function rocrate_5s to include CreativeWork under @type, a…
villegar Oct 13, 2025
3830e1a
Update validation of RO-Crates, is_rocrate, to account for entities w…
villegar Oct 13, 2025
8b9251d
Update documentation to capture S3 generic methods for .validate_enti…
villegar Oct 13, 2025
0a851af
New render
villegar Oct 13, 2025
20f0d3d
Add new module to create an RO-Crate bag using the BagIt file packagi…
villegar Oct 16, 2025
f2ae872
Remove documentation for internal S3 generic methods, as this resulte…
villegar Oct 16, 2025
7638110
New build
villegar Oct 16, 2025
a672622
Add dependency for the digest package
villegar Oct 16, 2025
5037828
Update README
villegar Oct 16, 2025
02c4fda
Add zip_flags as a new param, replace the use of tempdir() to bag the…
villegar Oct 16, 2025
8474e21
Update list of ignored files from builds and git
villegar Oct 16, 2025
163aec8
Update return object for the bag_rocrate function
villegar Oct 16, 2025
2bed2b3
Fix typo
villegar Oct 16, 2025
77ae585
Add spelling checks and list of ignored words
villegar Oct 16, 2025
bfcaa5a
Add tests for the bag_rocrate function
villegar Oct 16, 2025
6d81713
New build
villegar Oct 16, 2025
c8e6cc1
Add new function bagit_tagmanifest to generate a tagmanifest file
villegar Oct 16, 2025
9cac2c5
Add instructions on how to create an RO-Crate bag
villegar Oct 16, 2025
09f1e26
Add first draft of function to validate RO-Crate bag, is_rocrate_bag
villegar Oct 17, 2025
0bdb0b5
Update the internal .validate_rocrate_bag function to validate the Ba…
villegar Oct 20, 2025
f6bcf0b
New build
villegar Oct 20, 2025
ef74c6e
Update calls to stop and warning to exclude the function call
villegar Oct 21, 2025
18a894c
Add tests for is_rocrate_bag and unbag_rocrate
villegar Oct 21, 2025
40bbede
Update inspection of @graph entities, so only one entity is processed…
villegar Oct 21, 2025
c1fbd76
Replace message when issues is identified from using a call to stop t…
villegar Oct 21, 2025
1966109
Add new param output to the bag_rocrate function
villegar Oct 21, 2025
6c48263
Add new internal function .find_type_index, which can be used to find…
villegar Oct 23, 2025
24389f4
Add new function get_entity which allows the extraction of a single e…
villegar Oct 23, 2025
6ada3ce
Add S3 generic method to validate entity object with class entity
villegar Oct 23, 2025
e5e06d6
Add S3 generic method to print objects with entity class
villegar Oct 23, 2025
620737a
New build
villegar Oct 23, 2025
283be16
Add minimum version of R as a dependency, v4.1.0, to use the native pipe
villegar Oct 23, 2025
35aeb62
Breakdown README section 3 into separate functions to manipulate RO-C…
villegar Oct 23, 2025
e6872a6
Update read_rocrate and rocrate to assign the class entity when readi…
villegar Oct 24, 2025
4f4ce20
Add new test for S3 generic method for print.entity
villegar Oct 24, 2025
5887e28
Update installation instructions
villegar Oct 24, 2025
32a3811
Add new test for the get_entity function
villegar Oct 24, 2025
2112c10
Update expectation for tests and add new test for testing invalid @gr…
villegar Oct 24, 2025
fc0bb06
Add wrapper function for add_entity, which can be used to add multipl…
villegar Oct 27, 2025
0ebb41b
Add wrapper function for the remove_entity function, this one allows …
villegar Oct 27, 2025
2907aaf
New build
villegar Oct 27, 2025
272e9fc
Add new section with wrangling of RO-Crates
villegar Oct 27, 2025
fac9c84
Add new tests for add_entities and remove_entities
villegar Oct 27, 2025
175b101
Include new test to increase code coverage
villegar Oct 28, 2025
16b76c8
Update usage of force_bag to ignore checking if all files were copied…
villegar Oct 28, 2025
7a812ec
Add GHA for R-hub checks
villegar Oct 28, 2025
ab77232
Update tests and add new ones to increase code coverage
villegar Oct 28, 2025
72a55ce
Add missing return
villegar Oct 28, 2025
b1f9b17
Update calculation of valid_length_graph, account for which entities …
villegar Oct 28, 2025
62c8c7c
Update tests to capture errors generate by the is_rocrate function
villegar Oct 28, 2025
7e42cf3
New test to capture case in which an RO-Crate has multiple payload di…
villegar Oct 28, 2025
a76b2fc
Update URLs for RO-Crate and BagIt specifications
villegar Oct 28, 2025
b50127d
New build
villegar Oct 28, 2025
de3cb29
Add cran-comments to list of ignored files from builds
villegar Oct 29, 2025
c5979c7
Update documentation for get_entity and return when no entities are f…
villegar Oct 29, 2025
8190d0a
Relocate hex logo
villegar Oct 31, 2025
58266b6
Add support for pkgdown to generate website with documentation
villegar Oct 31, 2025
4f1e3ee
Add reference image for RO-Crates
villegar Oct 31, 2025
bbcfe23
Add support scripts, not part of the main package
villegar Oct 31, 2025
1d14155
New build
villegar Oct 31, 2025
45ec32c
Add template for issues
villegar Oct 31, 2025
56f38eb
Update list of valid words
villegar Oct 31, 2025
56bac95
Update words
villegar Oct 31, 2025
63803fc
Update CRAN comments
villegar Oct 31, 2025
5199407
Add background details for RO-Crates
villegar Oct 31, 2025
e5f55b9
Add URL to repo and BugReports
villegar Oct 31, 2025
fdfdf4c
Add NEWS.md
villegar Oct 31, 2025
e6988e8
Add CRAN-SUBMISSION to list of ignored files
villegar Oct 31, 2025
b9c2155
Update list of URLs
villegar Oct 31, 2025
fb42621
New build
villegar Oct 31, 2025
c8ed478
New render
villegar Oct 31, 2025
2dadfe7
Add missing local bindings to attempt addressing checks for the `Wind…
villegar Nov 3, 2025
87c1ae8
Remove examples for internal function .is_valid_url
villegar Nov 4, 2025
eaa1f28
Remove CRAN comments file from git
villegar Nov 4, 2025
f7e4821
Update bag_rocrate to use zip:zip instead of utils::zip for the the c…
villegar Nov 4, 2025
18131c1
Add new dependency, zip
villegar Nov 4, 2025
29e471f
Update tests to delete intermediate directory and handle new RO-Crate…
villegar Nov 4, 2025
7919a96
Update links
villegar Nov 4, 2025
a1764dd
Add html to list of ignored files
villegar Nov 4, 2025
cea9d5c
Generate lower resolution logo to decrease package size
villegar Nov 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,10 @@
^codecov.yml$
^cran-comments.md$
^README.Rmd$
^LICENSE.md$
^LICENSE.md$
^inst$
^cran-comments\.md$
^_pkgdown\.yml$
^docs$
^pkgdown$
^CRAN-SUBMISSION$
16 changes: 16 additions & 0 deletions .github/ISSUE_TEMPLATE/issue_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
name: Bug report or feature request
about: Describe a bug you've seen or make a case for a new feature
---

Please briefly describe your problem and what output you expect. If you have a question, please don't use this form. Instead, ask on <https://stackoverflow.com/> or <https://community.rstudio.com/>.

Please include a minimal reproducible example (AKA a reprex). If you've never heard of a [reprex](http://reprex.tidyverse.org/) before, start by reading <https://www.tidyverse.org/help/#reprex>.

For more advice on how to write a great issue, see <https://code-review.tidyverse.org/issues/>.

Brief description of the problem

```r
# insert reprex here
```
95 changes: 95 additions & 0 deletions .github/workflows/rhub.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
# R-hub's generic GitHub Actions workflow file. It's canonical location is at
# https://github.com/r-hub/actions/blob/v1/workflows/rhub.yaml
# You can update this file to a newer version using the rhub2 package:
#
# rhub::rhub_setup()
#
# It is unlikely that you need to modify this file manually.

name: R-hub
run-name: "${{ github.event.inputs.id }}: ${{ github.event.inputs.name || format('Manually run by {0}', github.triggering_actor) }}"

on:
workflow_dispatch:
inputs:
config:
description: 'A comma separated list of R-hub platforms to use.'
type: string
default: 'linux,windows,macos'
name:
description: 'Run name. You can leave this empty now.'
type: string
id:
description: 'Unique ID. You can leave this empty now.'
type: string

jobs:

setup:
runs-on: ubuntu-latest
outputs:
containers: ${{ steps.rhub-setup.outputs.containers }}
platforms: ${{ steps.rhub-setup.outputs.platforms }}

steps:
# NO NEED TO CHECKOUT HERE
- uses: r-hub/actions/setup@v1
with:
config: ${{ github.event.inputs.config }}
id: rhub-setup

linux-containers:
needs: setup
if: ${{ needs.setup.outputs.containers != '[]' }}
runs-on: ubuntu-latest
name: ${{ matrix.config.label }}
strategy:
fail-fast: false
matrix:
config: ${{ fromJson(needs.setup.outputs.containers) }}
container:
image: ${{ matrix.config.container }}

steps:
- uses: r-hub/actions/checkout@v1
- uses: r-hub/actions/platform-info@v1
with:
token: ${{ secrets.RHUB_TOKEN }}
job-config: ${{ matrix.config.job-config }}
- uses: r-hub/actions/setup-deps@v1
with:
token: ${{ secrets.RHUB_TOKEN }}
job-config: ${{ matrix.config.job-config }}
- uses: r-hub/actions/run-check@v1
with:
token: ${{ secrets.RHUB_TOKEN }}
job-config: ${{ matrix.config.job-config }}

other-platforms:
needs: setup
if: ${{ needs.setup.outputs.platforms != '[]' }}
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.label }}
strategy:
fail-fast: false
matrix:
config: ${{ fromJson(needs.setup.outputs.platforms) }}

steps:
- uses: r-hub/actions/checkout@v1
- uses: r-hub/actions/setup-r@v1
with:
job-config: ${{ matrix.config.job-config }}
token: ${{ secrets.RHUB_TOKEN }}
- uses: r-hub/actions/platform-info@v1
with:
token: ${{ secrets.RHUB_TOKEN }}
job-config: ${{ matrix.config.job-config }}
- uses: r-hub/actions/setup-deps@v1
with:
job-config: ${{ matrix.config.job-config }}
token: ${{ secrets.RHUB_TOKEN }}
- uses: r-hub/actions/run-check@v1
with:
job-config: ${{ matrix.config.job-config }}
token: ${{ secrets.RHUB_TOKEN }}
20 changes: 6 additions & 14 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,50 +1,42 @@
# History files
.Rhistory
.Rapp.history

# Session Data files
.RData
.RDataTmp

# User-specific files
.Ruserdata

# Example code in package build process
*-Ex.R

# Output files from R CMD build
/*.tar.gz

# Output files from R CMD check
/*.Rcheck/

# RStudio files
.Rproj.user/

# produced vignettes
vignettes/*.html
vignettes/*.pdf

# OAuth2 token, see https://github.com/hadley/httr/releases/tag/v0.3
.httr-oauth

# knitr and R markdown default cache directories
*_cache/
/cache/

# Temporary files created by R markdown
*.utf8.md
*.knit.md

# R Environment Variables
.Renviron

# pkgdown site
docs/

# translation temp files
po/*~

# RStudio Connect folder
rsconnect/
.Rproj.user
*.Rproj
.DS_Store
docs
CRAN-SUBMISSION
cran-comments.md
*.html
17 changes: 12 additions & 5 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: rocrateR
Title: RO-Crate R Package Wrapper
Version: 0.0.1.9000
Version: 0.0.1
Authors@R: c(
person(given = "Roberto",
family = "Villegas-Diaz",
Expand All @@ -9,15 +9,22 @@ Authors@R: c(
comment = c(ORCID = "0000-0001-5036-8661")),
person("Research Object community", role = c("cph")))
Description: R package for creating, manipulating and reading RO-Crates. Latest
supported version 1.2 of the specification.
supported version of the specification: <https://w3id.org/ro/crate/1.2/>.
License: MIT + file LICENSE
Suggests:
Suggests:
spelling,
testthat (>= 3.0.0)
Config/testthat/edition: 3
Encoding: UTF-8
Language: en-GB
URL: https://github.com/ResearchObject/ro-crate-r/
BugReports: https://github.com/ResearchObject/ro-crate-r/issues/
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.2
RoxygenNote: 7.3.3
Imports:
digest,
jsonlite,
tibble
tibble,
zip
Depends:
R (>= 4.1.0)
9 changes: 9 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
# Generated by roxygen2: do not edit by hand

S3method(bag_rocrate,character)
S3method(bag_rocrate,rocrate)
S3method(entity,default)
S3method(print,entity)
S3method(print,rocrate)
export(add_entities)
export(add_entity)
export(add_entity_value)
export(bag_rocrate)
export(entity)
export(get_entity)
export(is_rocrate)
export(is_rocrate_bag)
export(read_rocrate)
export(remove_entities)
export(remove_entity)
export(rocrate)
export(rocrate_5s)
export(unbag_rocrate)
export(write_rocrate)
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# rocrateR 0.0.1

* Initial CRAN submission.
Loading