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

View source: R/bib_scrp.R

bib_scrpR Documentation

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

Description

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

Usage

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

## Not run: 
bib_scrp('document.Rmd', 'refs.bib')

## End(Not run)

fawda123/Jabbrev documentation built on Jan. 12, 2025, 10:29 p.m.