Skip to content

Commit

Permalink
ragg > 1.3.0 supports all graphics device features
Browse files Browse the repository at this point in the history
  • Loading branch information
mjskay committed Mar 14, 2024
1 parent 0606aa6 commit d353db8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion icons/build_icons.R
Original file line number Diff line number Diff line change
Expand Up @@ -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) +
Expand Down
2 changes: 1 addition & 1 deletion vignettes/children/chunk_options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
4 changes: 2 additions & 2 deletions vignettes/slabinterval.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d353db8

Please sign in to comment.