Skip to content

Instantly share code, notes, and snippets.

@shanmdphd
Last active September 8, 2017 02:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shanmdphd/da8f6668451bfa4706f57c05afd1a22f to your computer and use it in GitHub Desktop.
Save shanmdphd/da8f6668451bfa4706f57c05afd1a22f to your computer and use it in GitHub Desktop.
Fast Bibliography Generation in R
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