knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
library(citationcheckR)

About the function

The check_bibtex_citations function allows users to check if a BibTeX citation they have matches up with R's citation. The

Using the function

Matching function

The first case we will see is if the two citations match each other.

test_citation <- create_citations("citationcheckR", include_r = F)

check_bibtex_citations(test_citation, "citationcheckR")

Since there are no differences between the citation given and R's citation, we receive the "No citation issues found!" message.

One mismatch

test_citation <- "@Manual{,
  title = {citationcheckR: Citation Checker for R},
  author = {Matthew Wankiewicz},
  year = {2010},
  note = {R package version 0.1.0},
  url = {https://github.com/matthewwankiewicz/citationcheckR},
}"

check_bibtex_citations(test_citation, "citationcheckR")

We can see that when entries do not match, the function will tell us which entry does not match and what the correct entry is.

Multiple Mismatches

test_citation <- "@Manual{,
  title = {citationcheckR: Citation Checker for R},
  author = {Matthew},
  year = {2020},
  note = {R package version 0.1.0},
  url = {https://github.com},
}"

check_bibtex_citations(test_citation, "citationcheckR")

As we can see, when multiple entries are mismatched, the function will tell us what the issues are, one by one.

Mismatched Packages

test_citation <- create_citations("base")

check_bibtex_citations(test_citation, "citationcheckR")

When the packages are not the same the function will treat it as entries which are not matched.



matthewwankiewicz/citationcheckR documentation built on Dec. 21, 2021, 3:47 p.m.