Are any bib entries duplicated?
any_bib_duplicates(bib.files, .report_error, rstudio = FALSE)
| bib.files | Files to check for duplicates |
|---|---|
| .report_error | How errors should be logged. |
| rstudio | Use the RStudio API? |
Called for its side-effect. If duplicates are detected, the first six are printed as a data.table;
otherwise, NULL, invisibly.
This function is very fastidious about the format of bib.files.
Run lint_bib (noting that this will overwrite your bibliography) if it complains.
This function finds exact duplicates in the author title date/year and volume fields. Note that it is not possible in general to detect actual duplicates; you will still need to inspect the printed bibliography.