Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dieghernan committed Dec 30, 2024
1 parent 2318a07 commit c04d280
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 15 deletions.
3 changes: 0 additions & 3 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,6 @@ references:
email: [email protected]
orcid: https://orcid.org/0000-0002-4035-0289
year: '2024'
identifiers:
- type: url
value: https://arxiv.org/abs/1403.2805
doi: 10.32614/CRAN.package.jsonlite
version: '>= 1.7.2'
- type: software
Expand Down
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ file and the `CITATION` file (if present) of your package. Note that
**cffr** works best if your package pass
`R CMD check/devtools::check()`.

As per 2024-12-18 there are at least 426 repos on GitHub using **cffr**.
As per 2024-12-30 there are at least 410 repos on GitHub using **cffr**.
[Check them out
here](https://github.com/search?q=cffr%20path%3A**%2FCITATION.cff&type=code).

Expand Down Expand Up @@ -394,9 +394,6 @@ test <- cff_create("rmarkdown")
email: [email protected]
orcid: https://orcid.org/0000-0002-4035-0289
year: '2024'
identifiers:
- type: url
value: https://arxiv.org/abs/1403.2805
doi: 10.32614/CRAN.package.jsonlite
- type: software
title: knitr
Expand Down
1 change: 1 addition & 0 deletions cffr.Rproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Version: 1.0
ProjectId: 25881e07-70a0-49da-ab8f-b4b862c2aeed

RestoreWorkspace: No
SaveWorkspace: No
Expand Down
4 changes: 2 additions & 2 deletions codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"name": "R",
"url": "https://r-project.org"
},
"runtimePlatform": "R version 4.4.2 (2024-10-31)",
"runtimePlatform": "R version 4.4.2 (2024-10-31 ucrt)",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
Expand Down Expand Up @@ -200,7 +200,7 @@
},
"isPartOf": "https://ropensci.org",
"keywords": ["attribution", "citation", "credit", "citation-files", "cff", "metadata", "citation-file-format", "cran", "r", "r-package", "ropensci", "rstats"],
"fileSize": "1603.497KB",
"fileSize": "1623.325KB",
"citation": [
{
"@type": "ScholarlyArticle",
Expand Down
Binary file modified data/cran_to_spdx.rda
Binary file not shown.
2 changes: 1 addition & 1 deletion inst/schemaorg.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"runtimePlatform": "R version 4.4.2 (2024-10-31)",
"runtimePlatform": "R version 4.4.2 (2024-10-31 ucrt)",
"version": "1.1.1"
}
4 changes: 2 additions & 2 deletions man/cff_class.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions tests/testthat/_snaps/as_cff.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
- family-names: person
given-names: A
email: [email protected]
orcid: https://orcid.org/0000-0000-0000-0000
orcid: https://orcid.org/0000-0001-8457-4658
affiliation: Real Madrid
website: https://www.google.com/

Expand All @@ -26,7 +26,7 @@
family-names: person
given-names: A
email: [email protected]
orcid: https://orcid.org/0000-0000-0000-0000
orcid: https://orcid.org/0000-0001-8457-4658
affiliation: Real Madrid
website: https://www.google.com/

Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-as_cff.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ test_that("as_cff.person", {
pers <- person("A", "person",
email = "[email protected]",
comment = c(
ORCID = "0000-0000-0000-0000",
ORCID = "0000-0001-8457-4658",
affiliation = "Real Madrid",
website = "https://www.google.com/"
)
Expand Down
3 changes: 3 additions & 0 deletions tests/testthat/test-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ test_that("Convert list of authors", {


test_that("as.person method", {
rvers <- getRversion()
skip_if(!grepl("^4.4", rvers), "Snapshot created with R 4.4.*")
skip_on_cran()
path <- system.file("examples/CITATION_complete.cff", package = "cffr")

the_cff <- cff_read(path)
Expand Down

0 comments on commit c04d280

Please sign in to comment.