-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6ddfddc
commit 7632c91
Showing
10 changed files
with
19 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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-11-28 there are at least 398 repos on GitHub using **cffr**. | ||
As per 2024-11-28 there are at least 416 repos on GitHub using **cffr**. | ||
[Check them out | ||
here](https://github.com/search?q=cffr%20path%3A**%2FCITATION.cff&type=code). | ||
|
||
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -914,14 +914,6 @@ | |
`date-start` = "2017-01-01", `date-end` = "2017-01-31", location = "The team garage" | ||
))), class = "person") | ||
|
||
--- | ||
|
||
Code | ||
format(aut2, include = c("given", "family", "email", "role", "comment")) | ||
Output | ||
[1] "One Truly van der Real Person, IV <[email protected]> (Citey, Excellent University, Niceplace, Arcadia, 22 Acacia Avenue, Citationburgh, Renfrewshire, C13 7X7, GB, <https://orcid.org/0000-0001-2345-6789>, +44(0)141-323 4567, +44(0)141-323 45678, https://www.entity-project-team.io)" | ||
[2] "Entity Project Team Conference entity <[email protected]> (22 Acacia Avenue, Citationburgh, Renfrewshire, C13 7X7, GB, <https://orcid.org/0000-0001-2345-6789>, +44(0)141-323 4567, +44(0)141-323 45678, https://www.entity-project-team.io, 2017-01-01, 2017-01-31, The team garage)" | ||
|
||
--- | ||
|
||
Code | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -165,9 +165,6 @@ test_that("as.person method", { | |
expect_s3_class(aut2[1], "person") | ||
expect_s3_class(aut2[2], "person") | ||
expect_snapshot(dput(aut2)) | ||
expect_snapshot( | ||
format(aut2, include = c("given", "family", "email", "role", "comment")) | ||
) | ||
|
||
# Malformed | ||
malf <- getref$authors | ||
|
@@ -291,25 +288,27 @@ test_that("toBibtex", { | |
"{The Big Bopper} and Frank Sinatra and Dean Martin and Davis, Jr., Sammy" | ||
) | ||
|
||
comp <- c( | ||
person("The Big Bopper"), person("Frank", "Sinatra"), | ||
person("Dean", "Martin"), person("Sammy", "Davis, Jr.") | ||
) | ||
|
||
expect_length(sev_auth, 4) | ||
expect_s3_class(sev_auth, "cff_pers_lst") | ||
expect_equal( | ||
toBibtex(sev_auth), | ||
paste( | ||
"{The Big Bopper} and Sinatra, Frank and", | ||
"Martin, Dean and Davis, Jr., Sammy" | ||
) | ||
) | ||
expect_identical(toBibtex(sev_auth), toBibtex(comp)) | ||
|
||
# Single person | ||
single <- as_cff_person(person("A", "person", email = "[email protected]"))[[1]] | ||
expect_s3_class(single, "cff_pers") | ||
expect_equal(toBibtex(single), "person, A") | ||
expect_identical(toBibtex(single), toBibtex(person("A", "person"))) | ||
|
||
# Single entity | ||
single <- as_cff_person(person("{A and B co}", email = "[email protected]"))[[1]] | ||
expect_s3_class(single, "cff_pers") | ||
expect_equal(toBibtex(single), "{A and B co}") | ||
expect_identical( | ||
toBibtex(single), | ||
toBibtex(person("A and B co", email = "[email protected]")) | ||
) | ||
}) | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters