Skip to content

Commit

Permalink
Merge pull request #205 from rstudio/fix/test-xfig
Browse files Browse the repository at this point in the history
The xfig() device is deprecated in R 4.4.0
  • Loading branch information
gaborcsardi authored Feb 20, 2024
2 parents 6a3ab69 + 453876f commit 906a865
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/test.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ tryCatch(capabilities(), warning = function(w) {

# Check graphics devices
# https://stat.ethz.ch/R-manual/R-devel/library/grDevices/html/Devices.html
for (dev_name in c("png", "jpeg", "tiff", "svg", "bmp", "pdf", "postscript",
"xfig", "pictex", "cairo_pdf", "cairo_ps")) {
devices <- c("png", "jpeg", "tiff", "svg", "bmp", "pdf", "postscript",
if (getRversion() < "4.4.0") c("xfig", "pictex"),
"cairo_pdf", "cairo_ps")
for (dev_name in devices) {
# Skip unsupported graphics devices (e.g. tiff in R >= 3.3 on CentOS 6)
if (dev_name %in% names(capabilities()) && capabilities(dev_name) == FALSE) {
next
Expand Down

0 comments on commit 906a865

Please sign in to comment.