Skip to content

Commit d166627

Browse files
authored
Merge pull request #4 from ResearchObject/cran
CRAN release v0.0.1
2 parents 810499a + cea9d5c commit d166627

54 files changed

Lines changed: 2303 additions & 108 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: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,10 @@
44
^codecov.yml$
55
^cran-comments.md$
66
^README.Rmd$
7-
^LICENSE.md$
7+
^LICENSE.md$
8+
^inst$
9+
^cran-comments\.md$
10+
^_pkgdown\.yml$
11+
^docs$
12+
^pkgdown$
13+
^CRAN-SUBMISSION$
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
name: Bug report or feature request
3+
about: Describe a bug you've seen or make a case for a new feature
4+
---
5+
6+
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/>.
7+
8+
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>.
9+
10+
For more advice on how to write a great issue, see <https://code-review.tidyverse.org/issues/>.
11+
12+
Brief description of the problem
13+
14+
```r
15+
# insert reprex here
16+
```

.github/workflows/rhub.yaml

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
# R-hub's generic GitHub Actions workflow file. It's canonical location is at
2+
# https://github.com/r-hub/actions/blob/v1/workflows/rhub.yaml
3+
# You can update this file to a newer version using the rhub2 package:
4+
#
5+
# rhub::rhub_setup()
6+
#
7+
# It is unlikely that you need to modify this file manually.
8+
9+
name: R-hub
10+
run-name: "${{ github.event.inputs.id }}: ${{ github.event.inputs.name || format('Manually run by {0}', github.triggering_actor) }}"
11+
12+
on:
13+
workflow_dispatch:
14+
inputs:
15+
config:
16+
description: 'A comma separated list of R-hub platforms to use.'
17+
type: string
18+
default: 'linux,windows,macos'
19+
name:
20+
description: 'Run name. You can leave this empty now.'
21+
type: string
22+
id:
23+
description: 'Unique ID. You can leave this empty now.'
24+
type: string
25+
26+
jobs:
27+
28+
setup:
29+
runs-on: ubuntu-latest
30+
outputs:
31+
containers: ${{ steps.rhub-setup.outputs.containers }}
32+
platforms: ${{ steps.rhub-setup.outputs.platforms }}
33+
34+
steps:
35+
# NO NEED TO CHECKOUT HERE
36+
- uses: r-hub/actions/setup@v1
37+
with:
38+
config: ${{ github.event.inputs.config }}
39+
id: rhub-setup
40+
41+
linux-containers:
42+
needs: setup
43+
if: ${{ needs.setup.outputs.containers != '[]' }}
44+
runs-on: ubuntu-latest
45+
name: ${{ matrix.config.label }}
46+
strategy:
47+
fail-fast: false
48+
matrix:
49+
config: ${{ fromJson(needs.setup.outputs.containers) }}
50+
container:
51+
image: ${{ matrix.config.container }}
52+
53+
steps:
54+
- uses: r-hub/actions/checkout@v1
55+
- uses: r-hub/actions/platform-info@v1
56+
with:
57+
token: ${{ secrets.RHUB_TOKEN }}
58+
job-config: ${{ matrix.config.job-config }}
59+
- uses: r-hub/actions/setup-deps@v1
60+
with:
61+
token: ${{ secrets.RHUB_TOKEN }}
62+
job-config: ${{ matrix.config.job-config }}
63+
- uses: r-hub/actions/run-check@v1
64+
with:
65+
token: ${{ secrets.RHUB_TOKEN }}
66+
job-config: ${{ matrix.config.job-config }}
67+
68+
other-platforms:
69+
needs: setup
70+
if: ${{ needs.setup.outputs.platforms != '[]' }}
71+
runs-on: ${{ matrix.config.os }}
72+
name: ${{ matrix.config.label }}
73+
strategy:
74+
fail-fast: false
75+
matrix:
76+
config: ${{ fromJson(needs.setup.outputs.platforms) }}
77+
78+
steps:
79+
- uses: r-hub/actions/checkout@v1
80+
- uses: r-hub/actions/setup-r@v1
81+
with:
82+
job-config: ${{ matrix.config.job-config }}
83+
token: ${{ secrets.RHUB_TOKEN }}
84+
- uses: r-hub/actions/platform-info@v1
85+
with:
86+
token: ${{ secrets.RHUB_TOKEN }}
87+
job-config: ${{ matrix.config.job-config }}
88+
- uses: r-hub/actions/setup-deps@v1
89+
with:
90+
job-config: ${{ matrix.config.job-config }}
91+
token: ${{ secrets.RHUB_TOKEN }}
92+
- uses: r-hub/actions/run-check@v1
93+
with:
94+
job-config: ${{ matrix.config.job-config }}
95+
token: ${{ secrets.RHUB_TOKEN }}

.gitignore

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,42 @@
11
# History files
22
.Rhistory
33
.Rapp.history
4-
54
# Session Data files
65
.RData
76
.RDataTmp
8-
97
# User-specific files
108
.Ruserdata
11-
129
# Example code in package build process
1310
*-Ex.R
14-
1511
# Output files from R CMD build
1612
/*.tar.gz
17-
1813
# Output files from R CMD check
1914
/*.Rcheck/
20-
2115
# RStudio files
2216
.Rproj.user/
23-
2417
# produced vignettes
2518
vignettes/*.html
2619
vignettes/*.pdf
27-
2820
# OAuth2 token, see https://github.com/hadley/httr/releases/tag/v0.3
2921
.httr-oauth
30-
3122
# knitr and R markdown default cache directories
3223
*_cache/
3324
/cache/
34-
3525
# Temporary files created by R markdown
3626
*.utf8.md
3727
*.knit.md
38-
3928
# R Environment Variables
4029
.Renviron
41-
4230
# pkgdown site
4331
docs/
44-
4532
# translation temp files
4633
po/*~
47-
4834
# RStudio Connect folder
4935
rsconnect/
5036
.Rproj.user
37+
*.Rproj
38+
.DS_Store
39+
docs
40+
CRAN-SUBMISSION
41+
cran-comments.md
42+
*.html

DESCRIPTION

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: rocrateR
22
Title: RO-Crate R Package Wrapper
3-
Version: 0.0.1.9000
3+
Version: 0.0.1
44
Authors@R: c(
55
person(given = "Roberto",
66
family = "Villegas-Diaz",
@@ -9,15 +9,22 @@ Authors@R: c(
99
comment = c(ORCID = "0000-0001-5036-8661")),
1010
person("Research Object community", role = c("cph")))
1111
Description: R package for creating, manipulating and reading RO-Crates. Latest
12-
supported version 1.2 of the specification.
12+
supported version of the specification: <https://w3id.org/ro/crate/1.2/>.
1313
License: MIT + file LICENSE
14-
Suggests:
14+
Suggests:
15+
spelling,
1516
testthat (>= 3.0.0)
1617
Config/testthat/edition: 3
1718
Encoding: UTF-8
1819
Language: en-GB
20+
URL: https://github.com/ResearchObject/ro-crate-r/
21+
BugReports: https://github.com/ResearchObject/ro-crate-r/issues/
1922
Roxygen: list(markdown = TRUE)
20-
RoxygenNote: 7.3.2
23+
RoxygenNote: 7.3.3
2124
Imports:
25+
digest,
2226
jsonlite,
23-
tibble
27+
tibble,
28+
zip
29+
Depends:
30+
R (>= 4.1.0)

NAMESPACE

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
11
# Generated by roxygen2: do not edit by hand
22

3+
S3method(bag_rocrate,character)
4+
S3method(bag_rocrate,rocrate)
35
S3method(entity,default)
6+
S3method(print,entity)
47
S3method(print,rocrate)
8+
export(add_entities)
59
export(add_entity)
610
export(add_entity_value)
11+
export(bag_rocrate)
712
export(entity)
13+
export(get_entity)
814
export(is_rocrate)
15+
export(is_rocrate_bag)
916
export(read_rocrate)
17+
export(remove_entities)
1018
export(remove_entity)
1119
export(rocrate)
1220
export(rocrate_5s)
21+
export(unbag_rocrate)
1322
export(write_rocrate)

NEWS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# rocrateR 0.0.1
2+
3+
* Initial CRAN submission.

0 commit comments

Comments
 (0)