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

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Socket.connect doesn't throw exception in Android -

SPSS keyboard combination alters encoding -