Error in graphics::plot.new() : figure margins too large
From both console and RStudio. No value of parameter mar passed to image_draw() fixes the issue. Also resizing the plot panel in RStudio has no effect.
Solution (on my system at least): swap two lines in magick:::setup_device(), from
Offending code (R 3.6.3, magick 2.6.0, ImageMagick 6.9.10.23, Ubuntu 20.04, 1920x1200 resolution):
From both console and RStudio. No value of parameter
mar
passed toimage_draw()
fixes the issue. Also resizing the plot panel in RStudio has no effect.Solution (on my system at least): swap two lines in
magick:::setup_device()
, fromto
Not sure if this breaks anything else :-)