context("check bibtex file")
test_that("error occurs when packages argument is missing",{
expect_error(check_bibtex_file("test-file.bib"))
})
test_that("error occurs when file is missing", {
expect_error(check_bibtex_file(, "tidyverse"))
})
test_that("error occurs when file is NOT BibTeX", {
expect_error(check_bibtex_file("test-file.bib", citation("tidyverse")$textVersion))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.