bookdown plot does not show accurately in github pages

I'm currently organizing what I have studied on the github page using r bookdown to organize what I have studied personally. However, when I want to apply the studied situations to bookdown by executing a performance code, the result plot of knitr to html in offline environment is normally displayed, but updating it to github causes a problem that the plot is not displayed. knitr setting I'm using as below:

```{r, setup, include=FALSE}
library(formatR)
knitr::opts_chunk$set(echo = TRUE, 
	collapse = TRUE, 
	fig.align="center", 
	tidy.opts = list(width.cutoff = 60), 
	tidy = TRUE
)
```

And also I used knitr cache=TRUE option for some code chunks. The github pages that I experienced problem is this: 7.2 Descriptive Statistics of Networks | Self-Study (lyric2249.github.io). Every figure that I run code at this page shows same error.

I suspect that the cause is that the image directory is not caught normally when updated on github, but it is not accurate. I would appreciate it if you could give me any advice on this matter.

Have you checked

When folder starts with _, it is possible that they are not served in Github pages unless you say otherwise.

Please check this as your figures are in a folder of this type (lyric2249.github.io/docs/_main_files/figure-html at main · lyric2249/lyric2249.github.io · GitHub)

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.