From 925b9b345528ba9689b4a4144ba35ab6d952e55b Mon Sep 17 00:00:00 2001 From: Yihui Xie Date: Tue, 26 Apr 2022 21:01:36 -0500 Subject: [PATCH] revert 6f6e80b0aa2ac0362e5dabbf9cd8978916474513, since the details and texPreview packages have been updated on CRAN --- DESCRIPTION | 2 +- NEWS.md | 6 ++++++ R/output.R | 18 ------------------ 3 files changed, 7 insertions(+), 19 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 2ab9b0247f..bde5b2c7f3 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: knitr Type: Package Title: A General-Purpose Package for Dynamic Report Generation in R -Version: 1.39 +Version: 1.39.1 Authors@R: c( person("Yihui", "Xie", role = c("aut", "cre"), email = "xie@yihui.name", comment = c(ORCID = "0000-0003-0645-5666")), person("Abhraneel", "Sarma", role = "ctb"), diff --git a/NEWS.md b/NEWS.md index 8b132d76f7..38a68280ef 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,9 @@ +# CHANGES IN knitr VERSION 1.40 + +## MINOR CHANGES + +- The internal function `knitr:::wrap()` has been removed from this package. If you rely on this function, you will have to use the exported function `knitr::sew()` instead. + # CHANGES IN knitr VERSION 1.39 ## MAJOR CHANGES diff --git a/R/output.R b/R/output.R index efab254a71..0242edfc25 100644 --- a/R/output.R +++ b/R/output.R @@ -442,15 +442,6 @@ sew = function(x, options = list(), ...) { UseMethod('sew', x) } -# TODO: see if we can remove this function in the future -wrap = function(...) { - warning2( - 'The internal function knitr:::wrap() has been deprecated. Please use the ', - 'exported function knitr::sew() instead.' - ) - sew(...) -} - #' @export sew.list = function(x, options = list(), ...) { if (length(x) == 0L) return(x) @@ -593,15 +584,6 @@ sew.knit_image_paths = function(x, options = opts_chunk$get(), inline = FALSE, . })), collapse = '') } -# TODO: remove this in the future -wrap.knit_image_paths = function(...) { - warning2( - "The internal function knitr:::wrap.knit_image_paths has been deprecated. ", - "Please use knitr::sew() on an object of the class 'knit_image_paths' instead." - ) - sew.knit_image_paths(...) -} - #' @export sew.html_screenshot = function(x, options = opts_chunk$get(), inline = FALSE, ...) { ext = x$extension