如果我在我的.rnw
文件中包含\usepackage{Sweavel}
,我得到一个X11弹出错误“看起来你正在使用Sweave特有的语法;你可能当我在RStudio(版本0.98.484)中编译时,需要Sweave2knitr(“IPT-baseline-test.rnw”)将它转换为knitr。该文件编译,但我不得不解雇这个错误。 (1)\ usepackage {Sweavel}触发错误的任何想法? usepackage {Sweavel}产生错误:看起来你正在使用Sweave特有的语法
(2)有没有办法关闭弹出窗口,因为文档编译呢?
> sessionInfo()
R version 3.0.2 (2013-09-25)
Platform: x86_64-apple-darwin10.8.0 (64-bit)
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] knitr_1.5
loaded via a namespace (and not attached):
[1] colorspace_1.2-4 dichromat_2.0-0 digest_0.6.3 evaluate_0.5.1
[5] formatR_0.10 ggplot2_0.9.3.1 grid_3.0.2 gtable_0.1.2
[9] labeling_0.2 MASS_7.3-29 munsell_0.4.2 plyr_1.8
[13] proto_0.3-10 RColorBrewer_1.0-5 reshape2_1.2.2 scales_0.2.3
[17] stringr_0.6.2 tools_3.0.2
它说这是'错误'还是只是'警告'? –
使用'knitr'语法,而不是Sweave(而不是Sweavel)。 –
@Dwin:据我所见,它不会出现在日志中......打开X11并创建一个弹出消息 –