Skip to content

Commit

Permalink
work around the empty bibliography in the BETS package: nmecsys/BETS#18
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Dec 14, 2020
1 parent e11b5b0 commit 268c6eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: rmarkdown
Type: Package
Title: Dynamic Documents for R
Version: 2.5.3
Version: 2.5.4
Authors@R: c(
person("JJ", "Allaire", role = "aut", email = "[email protected]"),
person("Yihui", "Xie", role = c("aut", "cre"), email = "[email protected]", comment = c(ORCID = "0000-0003-0645-5666")),
Expand Down
2 changes: 2 additions & 0 deletions R/output_format.R
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,8 @@ is_pandoc_to_html <- function(options) {

citeproc_required <- function(yaml_front_matter,
input_lines = NULL) {
# TODO: remove the hack below after BETS is updated on CRAN https://github.com/nmecsys/BETS/pull/18
if (tryCatch(xfun::check_old_package('BETS', '0.4.9'), error = function(e) FALSE)) return(FALSE)
(
is.null(yaml_front_matter$citeproc) ||
yaml_front_matter$citeproc
Expand Down

0 comments on commit 268c6eb

Please sign in to comment.