-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default destination in cff_write_citation
is in a temporary folder
#78
Comments
As an aside, it seems that saving it as |
It is a feature, so I prefer no to mess around with files other than
Don't see the issue, just call x <- cffr::cff_create("jsonlite")
cffr::cff_write_citation(x, "inst/CITATION")
#> ℹ Creating directory 'inst'
#> ℹ Writing 2 entries ...
#> ✔ Results written to 'inst/CITATION'
readLines("inst/CITATION")
#> [1] ""
#> [2] "bibentry(bibtype = \"Article\","
#> [3] " key = \"ooms:2014\","
#> [4] " title = \"The jsonlite Package: A Practical and Consistent Mapping Between JSON Data and R Objects\","
#> [5] " author = person(given = \"Jeroen\","
#> [6] " family = \"Ooms\","
#> [7] " email = \"[email protected]\","
#> [8] " comment = c(ORCID = \"0000-0002-4035-0289\")),"
#> [9] " year = \"2014\","
#> [10] " journal = \"arXiv:1403.2805 [stat.CO]\","
#> [11] " url = \"https://arxiv.org/abs/1403.2805\")"
readCitationFile("inst/CITATION", meta = packageDescription("jsonlite"))
#> To cite package 'jsonlite' in publications use:
#>
#> Ooms J (2014). "The jsonlite Package: A Practical and Consistent
#> Mapping Between JSON Data and R Objects." _arXiv:1403.2805
#> [stat.CO]_. <https://arxiv.org/abs/1403.2805>.
#>
#> A BibTeX entry for LaTeX users is
#>
#> @Article{ooms:2014,
#> title = {The jsonlite Package: A Practical and Consistent Mapping Between JSON Data and R Objects},
#> author = {Jeroen Ooms},
#> year = {2014},
#> journal = {arXiv:1403.2805 [stat.CO]},
#> url = {https://arxiv.org/abs/1403.2805},
#> } Created on 2025-01-17 with reprex v2.1.1 |
No worries, I respect that stance completely. :-) |
Hi there, thanks for this package!
I was walking through #51 to generate a
inst/CITATION
file, and it's mention in #51 (comment) that the default location isinst/CITATION
, but it seems the default actually is a temporary folder. Is that a bug or a feature? I think the mentioned default makes a lot of sense, as that's exactly where you'd expect it to end up. :-)The text was updated successfully, but these errors were encountered: