-
Notifications
You must be signed in to change notification settings - Fork 1
Description
I've been getting spotty report generation for projects--sometimes it will fail and sometimes succeed, but always on a project-by-project basis. I've had some more time to mess around with it, and it seems to fail on projects with large numbers of reads, specifically on the species-heatmap-making step. Based on that plus the traceback below, I think the issue is in generating the .png for the species heatmap:
Quitting from lines 440-445 (.snakemake.tmpdir.final_report.Rmd)
Error in (function (filename = "Rplot%03d.png", width = 480, height = 480, :
unable to start device 'png'
Calls: <Anonymous> ... block_exec -> chunk_device -> dev_new -> do.call -> <Anonymous>
In addition: Warning message:
In (function (filename = "Rplot%03d.png", width = 480, height = 480, :
cairo error 'invalid value (typically too big) for the size of the input (surface, pattern, etc.)'
Execution halted
Error in rule final_report:
jobid: 0
output: ~/sunbeam_output/reports/final_report.html
Fortunately, I have a solution! If you tell R to make SVG images instead of PNG, the .Rmd knits fine. I don't see why the output format would be super important, but I wanted a second opinion before making this change. Basically it's as simple as adding dev = 'svg' to the knitr::opts_chunk$set() call in the setup chunk. (Plus then your figs are nice .svgs.) Thoughts?