yihui 回复 第6楼 的 hygs:那是LaTeX问题,不是knitr不支持中文,是你得先保证你能编译中文LaTeX文档。妈妈早就说了knitr和中文文档无障碍: http://www.screenr.com/SvL8
yihui 嗨,大千世界那么多可以贴代码的地方,例如 pastebin.com 刚在系里Windows下测试了一下,RStudio调用XeLaTeX貌似是有问题,可能有bug(也可能是系里机器的问题,从来没靠谱过),如果是这样,请出门右拐到 http://support.rstudio.org
yihui 参见 http://support.rstudio.org/help/discussions/problems/4805-compile-sweave-to-pdf-with-knitr-and-rstudio