From 268c6eb372cac8d47b24f1d96c1c347abe128db4 Mon Sep 17 00:00:00 2001 From: Yihui Xie Date: Mon, 14 Dec 2020 10:05:09 -0600 Subject: [PATCH] work around the empty bibliography in the BETS package: https://github.com/nmecsys/BETS/pull/18 --- DESCRIPTION | 2 +- R/output_format.R | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index bcc1e0c5ce..22891f62fb 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -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 = "jj@rstudio.com"), person("Yihui", "Xie", role = c("aut", "cre"), email = "xie@yihui.name", comment = c(ORCID = "0000-0003-0645-5666")), diff --git a/R/output_format.R b/R/output_format.R index 545829e04b..f10187ce4c 100644 --- a/R/output_format.R +++ b/R/output_format.R @@ -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