diff --git a/DESCRIPTION b/DESCRIPTION index 493453db..df2b922b 100755 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -54,7 +54,7 @@ Suggests: broom (>= 0.5.6), patchwork, tidyr (>= 1.0.0), - ragg, + ragg (>= 1.3.0), pkgdown License: GPL (>= 3) Language: en-US diff --git a/icons/build_icons.R b/icons/build_icons.R index 52b443d6..7f725d1c 100755 --- a/icons/build_icons.R +++ b/icons/build_icons.R @@ -20,7 +20,7 @@ make_icon = function( y_expansion = 0.4 ) { for (name in names) tryCatch({ - agg_png(here::here("icons", paste0(name, ".png")), width = 60, height = 60) #, type = "cairo") + agg_png(here::here("icons", paste0(name, ".png")), width = 60, height = 60) p = ggplot(data, mapping) + geom(..., interval_size_range = c(0.6, 1.4) * 1.5) + diff --git a/vignettes/children/chunk_options.txt b/vignettes/children/chunk_options.txt index b3801f61..12db1b3d 100755 --- a/vignettes/children/chunk_options.txt +++ b/vignettes/children/chunk_options.txt @@ -34,7 +34,7 @@ knitr::opts_chunk$set( ) # graphics device -if (requireNamespace("ragg", quietly = TRUE) && in_pkgdown) { +if (requireNamespace("ragg", quietly = TRUE)) { knitr::opts_chunk$set( dev = "ragg_png" ) diff --git a/vignettes/slabinterval.Rmd b/vignettes/slabinterval.Rmd index a6da0f83..e596d251 100644 --- a/vignettes/slabinterval.Rmd +++ b/vignettes/slabinterval.Rmd @@ -749,8 +749,8 @@ df %>% ``` As of this writing, in R version 4.1 or greater the graphics devices that support -gradients --- i.e. device that support the `grid::linearGradient()` function --- -include `pdf()`, `svg()`, and `png(type = "cairo")`. See [here](https://developer.r-project.org/Blog/public/2020/07/15/new-features-in-the-r-graphics-engine/) for more about the changes to the R graphics engine. +gradients --- i.e. devices that support the `grid::linearGradient()` function --- +include `pdf()`, `svg()`, `png(type = "cairo")`, and `ragg::agg_png()`. See [here](https://developer.r-project.org/Blog/public/2020/07/15/new-features-in-the-r-graphics-engine/) for more about the changes to the R graphics engine. ### On analytical distributions