在Rmd文件中加载png时出错

时间:2015-12-07 15:06:37

标签: r png r-markdown

我正在尝试(invane)在我的Rmd文件中加载png文件。 我将Rmd和png保存在我的主驱动器上的同一个文件夹中(我测试过我可以使用R读取/写入文件)。

当我运行以下代码时

---
title: "Determinants of profitability"
author: "Daniele Frison"
date: "26 November 2015"
output:
  html_document:
    fig_height: 10
    fig_width: 10
---

```{r}

![aaa](prof_vs_costs.png) 

```

我无情地得到了这条错误消息:

  |................................                                 |  50%
  ordinary text without R code

  |.................................................................| 100%
label: unnamed-chunk-1


processing file: test.Rmd
Quitting from lines 13-16 (test.Rmd) 
Error in parse(text = x, srcfile = src) : <text>:2:2: unexpected '['
1: 
2: ![
    ^
Calls: <Anonymous> ... <Anonymous> -> parse_all -> parse_all.character -> parse

Execution halted

我无法找到此解析的问题。

提前感谢您的帮助

0 个答案:

没有答案
相关问题