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

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -