I'm using the latest version of TeXLive under Ubuntu (http://packages.ubuntu.com/quantal/tex/texlive) so I did not realize the version of standalone can be a problem. My version is also 1.1a, but I do not have any problems if I remove the preview option from your example. Sounds like there is a subtle difference somewhere between your Debian TeXLive and my Ubuntu TeXLive...
Regards, Yihui -- Yihui Xie <xieyi...@gmail.com> Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Mon, Dec 3, 2012 at 9:29 AM, Shige Song <shiges...@gmail.com> wrote: > All right. I did some more digging. It turns out that the real problem is > that the version of the "standalone" LaTeX package installed on my Debian > system is 1.1a. The easiest fix is to replace the three files > "standalone.cfg", "standalone.cls", and "standalone.sty" with the most > recent version from CTAN, which is 1.1b. Now I use > "\documentclass[preview]{standalone}" in my Rnw file to get the desired > results. > ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.