ricklovelisa Rstudio中安装并指定了weave rnw files using为knitr,knit word没问题,knit pdf提示需要安装miktext,knit html提示如下错误unrecognized fields specified in html_dependency: attachment,是不是需要配置其他东西呢? </p>
ricklovelisa 有没有遇到这个问题的大大? 我的环境是R version 3.1.1 (2014-07-10)<br /> Platform: i386-w64-mingw32/i386 (32-bit)</p> <p>locale:<br /> [1] LC_COLLATE=Chinese_People's Republic of China.936<br /> [2] LC_CTYPE=Chinese_People's Republic of China.936<br /> [3] LC_MONETARY=Chinese_People's Republic of China.936<br /> [4] LC_NUMERIC=C<br /> [5] LC_TIME=Chinese_People's Republic of China.936 </p> <p>attached base packages:<br /> [1] stats graphics grDevices utils datasets methods base </p> <p>other attached packages:<br /> [1] knitr_1.6 rmarkdown_0.2.49 tmcn_0.1-3 </p> <p>loaded via a namespace (and not attached):<br /> [1] digest_0.6.4 evaluate_0.5.5 formatR_1.0 htmltools_0.2.6 Rwordseg_0.2-1<br /> [6] stringr_0.6.2 tools_3.1.0 yaml_2.1.13 </p>
mingjc320 我自己来回答:把Rstudio和knitr相关包更新到最新就OK了。可以看下面这几条链接 http://stackoverflow.com/questions/25790059/r-markdown-error-cant-produce-html-file http://stackoverflow.com/questions/25784526/rmarkdown-html-output-error