rr-markdownblogdown

R blogdown is not showing the figure


I am trying to add this picture below to my blog

enter image description here

It generates an html file like this:

enter image description here

However, when I run blogdown::serve_site, the actual website appears without figure like this below: enter image description here

Can someone please suggest me a solution to fix this issue?


Solution

  • To include arbitrary files under the same directory as the Rmd file, you must use a leaf bundle. That is, your Rmd file must be named index.Rmd under a directory.

    There exists an alternative way, but it's much less intuitive, which is the static/ folder.