[R] What if plots don’t show up in blogdown webpage?
[This article was first published on R on Zhenguo Zhang's Blog, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
Zhenguo Zhang’s Blog /2023/05/27/r-what-if-plots-don-t-show-up-in-blogdown-webpage/ –Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
Recently I found that the plots generated by R don’t show up in the webpage
when I blogdown::serve_site()
locally or at netlify.app. A quick google
search gave me the following two solutions:
-
Modify the file config.toml to remove the pattern
_files$
from theignoreFiles
list. -
Add the option
fig.path=some/folder
inknitr::opts_chunk$set()
.
The first one is recommended by Yihui.
For more details, see the following pages:
😄 Happy programming!
– /2023/05/27/r-what-if-plots-don-t-show-up-in-blogdown-webpage/ –To leave a comment for the author, please follow the link and comment on their blog: R on Zhenguo Zhang's Blog.
R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.