TeXCheckR (version 0.6.0)

validate_bibliography: Validate bibliography according to Grattan style

Description

Validate bibliography according to Grattan style

Usage

validate_bibliography(path = ".", file = NULL, .report_error,
  rstudio = FALSE)

Arguments

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.

Value

NULL if bibliography validated.

Details

This is a highly fastidious test of the bibliography. Useful for collaboration to ensure consistent style.

Examples

Run this code
# 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)
# }
# NOT RUN {
# }

Run the code above in your browser using DataCamp Workspace