You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not sure why but if there is a png() device, but there is no X11 support, it still fails. Probably because png() uses X11 by default, and will not fall back to cairo, even if there is no X11.
So this is my current workaround:
skip_without_png_device<-function() {
if (.Platform$OS.type=="windows") return()
if (! capabilities("png") ||! capabilities("X11")) {
skip("Needs a PNG device")
}
}
I experimented with getting rid of the device all together, but I couldn't get it to work, likely because of the hoops that evaluate jumps through to capture graphics device state. I think pdf() should work everywhere.
Fixes#1011
I experimented with getting rid of the device all together, but I couldn't get it to work, likely because of the hoops that evaluate jumps through to capture graphics device state. I think pdf() should work everywhere.
Fixes#1011
In general it fails if there is on png() device.
TBH I am not sure if it is testthat's business to deal with graphic output at all, but at this point we might not be able to change this.
We could still use a more minimal device, e.g. the devoid package could be handy here?
The text was updated successfully, but these errors were encountered: