validate_bibliography: Validate bibliography according to Grattan style

Description Usage Arguments Details Value Examples

View source: R/validate_bibliography.R

Description

Validate bibliography according to Grattan style

Usage

1
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.

Details

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

Value

NULL if bibliography validated.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
## 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)

## End(Not run)

TeXCheckR documentation built on Nov. 17, 2020, 9:08 a.m.