In particular on Windows with R 4.1 we cannot tell if png() was called with "windows" (default) or "cairo" type. To be conservative guess FALSE. This probably fixes #51 . On Linux we can guess TRUE if capabilities("cairo") is TRUE. Supposedly the OSX Quartz driver is supposedly "PNG" instead of "png" so we don't need to guess.
In R 4.2 we will be able to use dev.capabilities() to know for sure in Windows case...
png()
was called with "windows" (default) or "cairo" type. To be conservative guessFALSE
. This probably fixes #51 . On Linux we can guessTRUE
ifcapabilities("cairo")
isTRUE
. Supposedly the OSX Quartz driver is supposedly "PNG" instead of "png" so we don't need to guess.dev.capabilities()
to know for sure in Windows case...