-
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
8ce3aba
commit bd529b7
Showing
8 changed files
with
17 additions
and
38 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,8 +73,9 @@ file and the `CITATION` file (if present) of your package. Note that | |
**cffr** works best if your package pass | ||
`R CMD check/devtools::check()`. | ||
|
||
See [some projects already using | ||
**cffr**](https://github.com/search?q=cffr%20path%3A**%2FCITATION.cff&type=code). | ||
As per 2024-11-28 there are at least 420 repos on GitHub using **cffr**. | ||
[Check them out | ||
here](https://github.com/search?q=cffr%20path%3A**%2FCITATION.cff&type=code). | ||
|
||
### Installation | ||
|
||
|
@@ -393,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
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 |
---|---|---|
|
@@ -296,18 +296,23 @@ test_that("toBibtex", { | |
|
||
expect_length(sev_auth, 4) | ||
expect_s3_class(sev_auth, "cff_pers_lst") | ||
expect_snapshot(toBibtex(sev_auth)) | ||
|
||
expect_equal( | ||
toBibtex(sev_auth), | ||
paste( | ||
"{The Big Bopper} and Sinatra, Frank and", | ||
"Martin, Dean and Davis, Jr., Sammy" | ||
) | ||
) | ||
|
||
# Single person | ||
single <- as_cff_person(person("A", "person", email = "[email protected]"))[[1]] | ||
expect_s3_class(single, "cff_pers") | ||
expect_snapshot(toBibtex(single)) | ||
expect_equal(toBibtex(single), "person, A") | ||
|
||
# Single entity | ||
single <- as_cff_person(person("{A and B co}", email = "[email protected]"))[[1]] | ||
expect_s3_class(single, "cff_pers") | ||
expect_snapshot(toBibtex(single)) | ||
expect_equal(toBibtex(single), "{A and B co}") | ||
}) | ||
|
||
|
||
|