4 ms·
> We also recommend to save the command used to generate a figure in the LaTeX file An approach I have adopted recently is Knitr[1], so this layer of indirecti
by akshayn 8y ago
> We also recommend to save the command used to generate a figure in the LaTeX file
An approach I have adopted recently is Knitr[1], so this layer of indirection goes away. With knitr, my data goes directly into the paper repository, and then my Makefile has something like this:
%.tex: graphs/%.Rnw
Rscript -e "library(knitr); knit('$?')"
The nice thing is exactly what the authors recommend: it's much easier to enforce a standard appearance across all the figures, and automatically incorporate more recent data into the paper as part of the compilation process.
[1] https://yihui.name/knitr/ https://yihui.name/knitr/
- Wookai 8y agoLooks awesome, thanks for sharing!