Error with loading png in Rmd file

╄→尐↘猪︶ㄣ 提交于 2019-12-12 05:25:16

问题


i am trying (invane) to load a png file in my Rmd file. I save both the Rmd and the png in the same folder on my main drive (I tested i can read/write files in there with R).

When i run the following code

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

```

I get inexorably this error message:

  |................................                                 |  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

I can't find what is the problem with this parse.

Thanks in advance for your kind help

来源:https://stackoverflow.com/questions/34136738/error-with-loading-png-in-rmd-file

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!