r - have knitr output figures in different formats -
let's have long report produces lot of figures knitr
makes pdfs , works latex. @ end of project, co-authors have raster based figures. 1 option convert using imagemagick. option specify each chunk dev = c("jpg", "pdf")
, given number of figures, cumbersome.
is there global switch make knitr
produce figures in pdf , other formats @ same time?
i think in preamble
opts_chunk$set(dev = c("pdf", "jpg"))
should do. within r-chunk of course.
Comments
Post a Comment