cboettig / knitcitations

:package: Generate citations for knitr markdown and html files
http://carlboettiger.info
Other
220 stars 28 forks source link

Actually integrating into knitr #12

Closed emhart closed 12 years ago

emhart commented 12 years ago

Is there some sort of special hook in knitr for the citations? It's unclear how you would cite in line. Or would you write like: "blah blah blah (Simpson 1989)". It'd be preferable to have some sort of hook so that you could write and then cite the doi inline. Or am I missing something?

cboettig commented 12 years ago

knitcitations is a separate package which brings this functionality to Yihui's knitr (actually it can be used to get citations from dois and write them into bibtex files, so it could potentially be used by non-knitr users too).

Install knitcitations and then you can cite by doi as shown in the example (just call knit("citations.Rmd") on the knitr source file, citations.Rmd)