Skip to content
Prev 295690 / 398503 Next

sweave tables as images?

Normally I hate the device()+code+dev.off()+cat('\\includegraphics{})
trick. Let me show you how trivial this can be in knitr:
https://gist.github.com/2790922

This example shows the real source code to the reader
(device()+dev.off() makes no sense to them), and leaves all the dirty
tricks behind the scene.

That being said, Sweave can be regarded as a subset of knitr, so if
you really want to play the old trick, you still can do it in knitr.

Regards,
Yihui
--
Yihui Xie <xieyihui at gmail.com>
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA


On Fri, May 25, 2012 at 5:01 PM, baptiste auguie
<baptiste.auguie at googlemail.com> wrote: