Error loading png in rmd file

I am trying (invane) to load a png file into my Rmd file. I save Rmd and png in the same folder on my main drive (I tested, I can read / write files 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 am 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 not find what the problem is with this analysis.

Thanks in advance for your kind help.

0
source share

All Articles