Achal Neupane
Achal Neupane

Reputation: 5719

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?

Upvotes: 0

Views: 87

Answers (1)

Yihui Xie
Yihui Xie

Reputation: 30114

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.

Upvotes: 1

Related Questions