全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 R语言论坛
1286 1
2019-08-05
#1.代码如下:

---
title: <center>This is my first report</center>
output:
  html_document:
    toc: true
    toc_float:
      collapsed: true
      smooth_scroll: true
    number: true
    number_sections: true
    theme: cerulean
runtime: shiny
---
#插入图片
![title](D:/1.jpg)


#2.输出提示报错内容如图

#3.个人解决思路更改运行路径,但是行不通
```{r setup}
knitr::opts_knit$set(root.dir = 'D:/')
```

#
附件列表
微信图片_20190805191355.png

原图尺寸 19.82 KB

Rmarkdown中提示图片路径不对,应该怎么处理?

Rmarkdown中提示图片路径不对,应该怎么处理?

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2019-8-5 22:32:00
一定要改变你的工作路径嘛?就不能把你的图片复制到当前的working directory嘛?
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群