knitr - Integrated R/markdown/pandoc bibliographies from multiple sources? -
seems simple problem: have assembled bibliography pubmed in medline xml format. works pandoc-citeproc format citations , produce list of references @ end of document. want integrate citations r packages using , produce unified bibliography in pandoc (via pandoc-citeproc).
pandoc-citeproc write yaml , json bibliographies medline xml. i'm ok (possibly manual) merge of r , medline citations before running pandoc. don't see in citation() nor pandoc-citeproc transform medline , citation() output common format can used create unified bibliography.
thanks pointers have.
i used bibtex package write r citations file
library(ggplot2) library(plyr) library(limma) library(bibtex) write.bib( c('bibtex', 'ggplot2', 'plyr', 'biobase', 'limma'), file "r.citations.bib" )
pandoc accepts multiple --bibliography arguments. importantly, if bibliography filename suffixes recognized, can use different bibliography formats (.medline ncbi's xml format) , pandoc seems put together:
pandoc --bibliography bib.medline --bibliography r.citations.bib file.md -o file.docx
Comments
Post a Comment