感谢亿辉的及时回复和新版本knitr的发布。我真的很欣赏 knitr 包的用处。
在我升级了你刚刚上传的 knitr 0.9 之后。问题已排序。然后我尝试通过手动重新安装 knitr 0.8 来重现错误,并且错误再次发生。下面是我的计算机在 0.9 和 0.8 工作时分别执行 sessionInfo() 的输出。
R version 2.15.2 (2012-10-26)
Platform: x86_64-pc-linux-gnu (64-bit)
locale:
[1] LC_CTYPE=en_GB.UTF-8 LC_NUMERIC=C LC_TIME=en_GB.UTF-8
[4] LC_COLLATE=en_GB.UTF-8 LC_MONETARY=en_GB.UTF-8 LC_MESSAGES=en_GB.UTF-8
[7] LC_PAPER=C LC_NAME=C LC_ADDRESS=C
[10] LC_TELEPHONE=C LC_MEASUREMENT=en_GB.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] knitr_0.9
loaded via a namespace (and not attached):
[1] digest_0.6.0 evaluate_0.4.3 formatR_0.7 plyr_1.7.1 stringr_0.6.1 tools_2.15.2
-------------------------------------------------- -----------------------------------------
R version 2.15.2 (2012-10-26)
Platform: x86_64-pc-linux-gnu (64-bit)
locale:
[1] LC_CTYPE=en_GB.UTF-8 LC_NUMERIC=C LC_TIME=en_GB.UTF-8
[4] LC_COLLATE=en_GB.UTF-8 LC_MONETARY=en_GB.UTF-8 LC_MESSAGES=en_GB.UTF-8
[7] LC_PAPER=C LC_NAME=C LC_ADDRESS=C
[10] LC_TELEPHONE=C LC_MEASUREMENT=en_GB.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] knitr_0.8
loaded via a namespace (and not attached):
[1] digest_0.6.0 evaluate_0.4.3 formatR_0.7 plyr_1.7.1 stringr_0.6.1 tools_2.15.2