R/validate_bibliography.R
validate_bibliography.Rd
Validate bibliography according to Grattan style
validate_bibliography(path = ".", file = NULL, .report_error, rstudio = FALSE)
path | Containing the bib file. |
---|---|
file | The bib file if specified. |
.report_error | How errors should be reported. |
rstudio | Use the RStudio API to jump to errors. |
NULL
if bibliography validated.
This is a highly fastidious test of the bibliography. Useful for collaboration to ensure consistent style.
# NOT RUN { bib_temp <- tempfile(fileext = ".bib") url_bib <- paste0("https://raw.githubusercontent.com/HughParsonage/", "grattex/e6cab97145d38890e44e83d122e995e3b8936fc6", "/bib/Grattan-Master-Bibliography.bib") download.file(url_bib, destfile = bib_temp) validate_bibliography(file = bib_temp) bib_temp <- tempfile(fileext = ".bib") url_bib <- paste0("https://raw.githubusercontent.com/HughParsonage/", "grattex/8f7f52a28789d12a363ceb30cea3b41f590ae58a", "/bib/Grattan-Master-Bibliography.bib") download.file(url_bib, destfile = bib_temp) validate_bibliography(file = bib_temp) # }