I thought that we used this before but I see the same problem with older versions of webR:
install.packages("magick")
library(magick)
png('test.png')
plot(rnorm(100), main = 'bla')
dev.off()
The R console shows a warning
(process:42): Pango-WARNING **: 13:17:04.095: shaping failure, expect ugly output. shape-engine='PangoFcShapeEngine', font='Noto Sans 9', text='m'
And browser dev console shows a "remainer by zero" error:
For some reason it does not happen when using alternative png devices:
install.packages("magick")
install.packages("ragg")
library(magick)
library(ragg)
ragg::agg_png('test.png')
plot(rnorm(100), main = 'bla')
dev.off()
I thought that we used this before but I see the same problem with older versions of webR:
The R console shows a warning
And browser dev console shows a "remainer by zero" error:
For some reason it does not happen when using alternative png devices: