Skip to content

Commit

Permalink
changes: deprecate as_raster()
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgohel committed Mar 28, 2024
1 parent a52b12f commit 838be71
Show file tree
Hide file tree
Showing 3 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: flextable
Type: Package
Title: Functions for Tabular Reporting
Version: 0.9.6.004
Version: 0.9.6.005
Authors@R: c(
person("David", "Gohel", role = c("aut", "cre"),
email = "david.gohel@ardata.fr"),
Expand Down
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
loops or `if` statements.
- Add explanation about caption limitations in the manual of functions
`save_as_image()` and `ph_with.flextable()`.
- Deprecate `as_raster()` since `gen_grob()` is easier to use and render nicer.

# flextable 0.9.5

Expand Down
1 change: 1 addition & 0 deletions R/printers.R
Original file line number Diff line number Diff line change
Expand Up @@ -1095,6 +1095,7 @@ plot.flextable <- function(x, ...) {
#' @family flextable print function
#' @keywords internal
as_raster <- function(x, ...) {
.Deprecated(new = "gen_grob()")
if (!requireNamespace("magick", quietly = TRUE)) {
stop(sprintf(
"'%s' package should be installed to create an image from a flextable.",
Expand Down

0 comments on commit 838be71

Please sign in to comment.