Is there a way to suppress chunk name in figure captions when using R markdown?

Viewed 181

Is there a way to set R markdown so that the chunk name does not get included with the figure caption.

Below is an example. I would like to use "Figure Caption" as the caption instead of "chunkname Figure Caption". I just want to use chunkname as a reference for navigating through the markdown file when editing.

```{r chunkname, fig.cap="Figure Caption"}

knitr::include_graphics("image.png")

```
2 Answers

Not exactly sure what your other code looks like in the Rmarkdown file, but that is not how Rmarkdown normally works, when I use your Code, I get the outcome you are wanting

enter image description here

Related