R/helpers.R
to.pdf.Rd
Prints to pdf, but turns dev off if fails
to.pdf(expr, filename, ..., verbose = TRUE)
expression to give plot
filename to print to
Other safe_plot_saving: to.png(), to.svg()
to.png()
to.svg()