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 have some tests for plotting functions that use the equivalent of:
png("/dev/null")
doSomething()
dev.off()
...but on Mac OS this fails with:
Error in dev.off() :
QuartzBitmap_Output - unable to open file '/dev/null'
Using cairo (with options(bitmapType = "cairo") or png(..., type = "cairo")), like I see on Linux as the default, does fine. Alternatively a temporary file might be the better way to go. That would also test that the plotting doesn't fail with a platform's default bitmap device. There's already within_tmpdir in the test helpers that could be useful.
The text was updated successfully, but these errors were encountered:
I have some tests for plotting functions that use the equivalent of:
...but on Mac OS this fails with:
Using cairo (with
options(bitmapType = "cairo")
orpng(..., type = "cairo")
), like I see on Linux as the default, does fine. Alternatively a temporary file might be the better way to go. That would also test that the plotting doesn't fail with a platform's default bitmap device. There's alreadywithin_tmpdir
in the test helpers that could be useful.The text was updated successfully, but these errors were encountered: