
Last chance! 50% off unlimited learning
Sale ends in
fcn <- System$findGraphicsDevice();
if (identical(fcn, png)) {
cat("PNG device found: png()");
} else if (identical(fcn, png2)) {
cat("PNG device found: png2()");
} else if (identical(fcn, bitmap)) {
cat("PNG device found: bitmap()");
} else {
cat("PNG device not found.");
}
Run the code above in your browser using DataLab