bib_scrp: Find bibtex tags in a document, scrape entries from external...

Description Usage Arguments Details Value Examples

View source: R/bib_scrp.R

Description

Find bibtex tags in a document, scrape entries from external bib file, save new

Usage

1
2
bib_scrp(rmd_in, bib_new = "refs.bib",
  ext_bib = "https://fawda123.github.io/refs/refs.bib")

Arguments

rmd_in

chr string of path to Rmd file

bib_new

path for output .bib file

ext_bib

chr string of url for external bib file to scrape

Details

Currently only works for .Rmd files with the Rmarkdown format of bibtex tags, e.g., [@Jones18]. The user must also check the external bib file to make sure all tags in the .Rmd file are present.

Value

A new bib file is saved, nothing is returned to the console

Examples

1
2
3
4
## Not run: 
bib_scrp('document.Rmd', 'refs.bib')

## End(Not run)

fawda123/Jabbrev documentation built on Jan. 25, 2021, 5:22 p.m.