Functions for parsing .bib files
fread_bib(file.bib, check.dup.keys = TRUE, strip.braces = TRUE, check.unescaped.percent = TRUE, .bib_expected = TRUE, halt = TRUE, rstudio = FALSE, .report_error) bib2DT(file.bib, to_sort = FALSE) reorder_bib(file.bib, outfile.bib = file.bib)
file.bib |
|
---|---|
check.dup.keys | If |
strip.braces | If |
check.unescaped.percent | If |
.bib_expected | (logical, default: |
halt | Whether to halt on error. If |
rstudio | (logical, default: |
.report_error | A function like |
to_sort | Include only author, title, year, and date. |
outfile.bib | File to write the reordered bib to. Defaults to |
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.