Figure will not show?

Greetings all,
I am putting together a gitbook/pdf and I am using Rmarkdown, knitr and Bookdown to present my figures.

for example:

knitr::opts_chunk$set(cache = TRUE, fig.cap = "text, text text")

knitr::include_graphics("../data/images/my.png")

The images become the widget instead of displaying.
Does it matter if I put all or most of the photo image information in the knitr::opts_chunk() command or in the first line of the code chunk,

I don’t know this particular command but Could u just use the regular

#        ![text](photo-file)
1 Like

I had problems including graphics in my markdown document. The image was referenced in my R markdown document. I had a reference in the knitr chunk but that did not work. My image printed when I moved image to the same folder as my document rather than a separate images folder and referenced the path in my document.


![](./gtlslogo.png)
1 Like

Yes, thank you very much.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.