Skip to content

Commit

Permalink
revert 6f6e80b, since the details and texPreview packages have been u…
Browse files Browse the repository at this point in the history
…pdated on CRAN
  • Loading branch information
yihui committed Apr 27, 2022
1 parent de50f7d commit 925b9b3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 19 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -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 = "[email protected]", comment = c(ORCID = "0000-0003-0645-5666")),
person("Abhraneel", "Sarma", role = "ctb"),
Expand Down
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
18 changes: 0 additions & 18 deletions R/output.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 925b9b3

Please sign in to comment.