JulienGAMartin / pedtricks

reboot of pedantics R package
https://juliengamartin.github.io/pedtricks/
Other
1 stars 0 forks source link

add zenodo doi #15

Open JulienGAMartin opened 2 months ago

JulienGAMartin commented 2 months ago

tag added in Readme. now need to add it to citation in the package

matthewwolak commented 2 months ago

Does anyone know a slick way to import information from the DESCRIPTION file as code pasted into CITATION. I almost added the file inst/CITATION but didn't want to write out all of the information for the fields. Without a CITATION file, R creates a citation from the information in DESCRIPTION so there must be a way to do a hybrid CITATION file where some information is provided (e.g., Zenodo doi) in a tag but other tags in bibentry() are gleaned from DESCRIPTION.

JulienGAMartin commented 2 months ago

No I don't know one. Lokking at the code for the citation() function it looks for a CITATION file or generate something based on the description file if there are no CITATION file. Thus I don't think you cna provide partial info in the citation file, either you use it with all the info or you don't.

What we can do is generate the bib entry using citation("pedtricks") and use that as the basis for the CITATION file. We can also create a small function to run after we modify the description file (e.g. new version) that would then update the citation file (or just do it manually since we also want to update the doi