MichaelChirico / r-bugs

A ⚠️read-only⚠️mirror of https://bugs.r-project.org/
20 stars 0 forks source link

[BUGZILLA #16585] citation() package version printing #5975

Open MichaelChirico opened 4 years ago

MichaelChirico commented 4 years ago

The BibTeX entry results returned from citation() place the R package version in the "note" field. It would allow for cleaner bibtex parsing if it was in the "version" field.

See: http://stackoverflow.com/questions/31501388/how-do-i-get-r-package-versions-to-print-in-an-r-markdown-beamer-bibliography


METADATA

MichaelChirico commented 4 years ago

The "version" field is not used in standard styles. See Patashnik's original documentation in http://mirrors.ctan.org/biblio/bibtex/base/btxdoc.pdf, or a more recent description as in https://en.wikibooks.org/wiki/LaTeX/Bibliography_Management#Entry_and_field_types_in_.bib_files.

The format allows you to add extra fields and you can write styles to display them, but if R did that, its output wouldn't work for most people.


METADATA

MichaelChirico commented 4 years ago

Whoops, "version" is included in my second reference. I missed it on first reading.


METADATA

MichaelChirico commented 4 years ago

And after a little more research, I can't find any BibTeX styles that support "version". Only biblatex supports it, and R doesn't currently have any biblatex support. So I'll leave this open and on the wishlist, but it seems to me it's more appropriate for a contributed package author to write, rather than putting it into core R.


METADATA

MichaelChirico commented 4 years ago

It would also be nice to remove the last comma...

@Manual{, title = {bupaR: Business Process Analysis in R}, author = {Gert Janssenswillen}, year = {2017}, note = {R package version 0.3.2}, url = {https://www.bupar.net}, }


METADATA

MichaelChirico commented 4 years ago

(In reply to Giorgio Alfredo Spedicato from comment #4)

It would also be nice to remove the last comma...

@Manual{,
title = {bupaR: Business Process Analysis in R},
author = {Gert Janssenswillen},
year = {2017},
note = {R package version 0.3.2},
url = {https://www.bupar.net},
}

Why? AFAIK it / has become legal bibtex syntax, and with the extra comma it's much easier to edit such entries, i.e. adding / deleting / shuffling the "fields" of a bibtex entry.


METADATA