html R Markdown中不显示数字



我对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)

问题是第一个斜杠。如果我这样写:

![my figure](figure/another_folder/my_picture.png)

一切都很好。对不起,我误读了手册!

最新更新