繁体   English   中英

数字未显示在html R Markdown中

[英]Figures are not displayed in 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)

一切正常。 对不起,误读了手册!

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM