Skip to content

Commit

Permalink
add method for gList
Browse files Browse the repository at this point in the history
  • Loading branch information
Yunuuuu committed Jan 6, 2025
1 parent 1b8ee38 commit 850cd3d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ S3method(.raster_magick,Layer)
S3method(.raster_magick,QuadLayout)
S3method(.raster_magick,StackLayout)
S3method(.raster_magick,default)
S3method(.raster_magick,gList)
S3method(.raster_magick,ggalignRasterMagick)
S3method(.raster_magick,ggalign_plot)
S3method(.raster_magick,ggplot)
Expand Down
4 changes: 4 additions & 0 deletions R/raster-magick.R
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ raster_magick <- function(x, magick = NULL, ...,
)
}

#' @importFrom grid grob
#' @export
.raster_magick.gList <- .raster_magick.grob

#' @export
.raster_magick.ggalignRasterMagick <- function(x, magick = NULL, ...,
res = NULL,
Expand Down

0 comments on commit 850cd3d

Please sign in to comment.