1

I am using summarytools in rmarkdown and I followed the instructions to print a summary statistics table, but it would not work:

dfSummary(tobacco, plain.ascii = FALSE, style = "grid", 
          graph.magnif = 0.75, valid.col = FALSE, tmp.img.dir = "/tmp")

I get an error:

Error in magick_image_write, RGB color space not permitted on grayscale PNG

Is there a way to get around the error? I checked and magick is installed properly.

halo09876
  • 2,725
  • 12
  • 51
  • 71

1 Answers1

0

could you provide more info on your system?

Until this is resolved, what you could do is go back to an earlier version of summarytools, for instance:

devtools::install_github("dcomtois/summarytools", ref = "0.8.9")

If you want, you can open an issue on the project page on GitHub and we can look into this in more depth.

Dominic Comtois
  • 10,230
  • 1
  • 39
  • 61