我对 R Markdown 和 knitr 还很陌生。
我正在尝试在我的报告中添加一些数字:
![my figure](/figure/another_folder/my_picture.png)
假设 /figure/another_folder/ 在当前工作目录中。但是我的报告中没有任何数字,只有问号。
系统信息:
> sessionInfo()
R version 3.0.1 (2013-05-16)
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.2
loaded via a namespace (and not attached):
[1] colorspace_1.2-2 dichromat_2.0-0 digest_0.6.3 evaluate_0.4.3 formatR_0.7
[6] ggplot2_0.9.3.1 grid_3.0.1 gtable_0.1.2 labeling_0.1 MASS_7.3-26
[11] munsell_0.4 plyr_1.8 proto_0.3-10 RColorBrewer_1.0-5 reshape2_1.2.2
[16] scales_0.2.3 stringr_0.6.2 tools_3.0.1
我还找到了运行诊断报告的建议(在 r-studio 支持页面上):
> rstudio::diagnosticsReport()
Error: package ‘rstudio’ was built before R 3.0.0: please re-install it
这可以连接吗?如果是这样,我应该如何重新安装 R-studio?我的卸载.app?因为运行install.packages('rstudio')
只会产生警告:Warning message:
package ‘rstudio’ is not available (for R version 3.0.1)