Last active
September 8, 2017 02:46
-
-
Save shanmdphd/da8f6668451bfa4706f57c05afd1a22f to your computer and use it in GitHub Desktop.
Fast Bibliography Generation in R
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
knitr::write_bib(c('caffsim', 'NonCompart', 'ncar'), 'temp.bib') | |
capture.output(bibtex::read.bib('temp.bib'), file = 'temp.txt') | |
myBib <- readLines('temp.txt') | |
myBib[myBib == ''] <- '\n\n' | |
paste(gsub('_', '',myBib), collapse = '') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment