Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Citing articles in R package using roxygen2 and BibTeX?

Tags:

I'm using roxygen2 as a tool for documenting my R package, and I found that there is a @references tag in roxygen2, but that seems to only accept free form text. I found some presentation about roxygen which has tags @bibliograph and @cite, but am I correct that there is no such thing in roxygen2?

Should I then somehow take the references out of the bibtex-file and write them manually with appropriate formatting directly after the @references tag or is there some more clever way of doing this? I have about seven different articles I need to cite, over multiple functions/rd-files.

like image 954
Jouni Helske Avatar asked Apr 18 '12 10:04

Jouni Helske


1 Answers

Seems that there is a brand new pull request contributing this feature: https://github.com/klutometis/roxygen/pull/90

So hopefully we'll soon have this functionality.

like image 98
cbeleites unhappy with SX Avatar answered Oct 04 '22 12:10

cbeleites unhappy with SX