From 90b81606fd4f8294f9e74d1747e7f5850157f5fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Cs=C3=A1rdi?= Date: Mon, 19 Feb 2024 14:59:37 +0100 Subject: [PATCH] The xfig() device is deprecated in R 4.4.0 So we do not test it any more. Cf. https://github.com/wch/r-source/commit/d04d9dbcf44858eeb3589a826020a6a343c210c1 --- test/test.R | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/test.R b/test/test.R index 8be20c1..be4144e 100644 --- a/test/test.R +++ b/test/test.R @@ -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") "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