TeXCheckR (version 0.6.0)

bib_parser: Functions for parsing .bib files

Description

Functions for parsing .bib files

Usage

fread_bib(file.bib, check.dup.keys = TRUE, strip.braces = TRUE)

bib2DT(file.bib, to_sort = FALSE)

reorder_bib(file.bib, outfile.bib = file.bib)

Arguments

file.bib

.bib file.

check.dup.keys

If TRUE, the default, return error if any bib keys are duplicates.

strip.braces

If TRUE, the default, braces in fields are removed.

to_sort

Include only author, title, year, and date.

outfile.bib

File to write the reordered bib to. Defaults to file.bib.

Details

bib2DT returns a data.table of the entries in file.bib. The function reorder_bib rewrites file.bib, to put it in surname, year, title, line number order.