rmarkdown::render_site() Error in rmarkdown::render_site() : No site generator found

Deadly 提交于 2019-12-05 02:32:40

I got the same error when attempting to build with an incorrectly named YAML config file. Specifically, the RStudio build option for a website requires that the config file be called _site.yml.

Verify that this file exists and that you're using the extension .yml rather than .yaml (even though the latter is preferred).

What helped for me was putting the line site: bookdown::bookdown_site back to index.Rmd.

I fixed this error using this steps.

1-) RStudio-Tools-InstallPackages
2-) Install From should be CRAN Repository.
3-) write this command --> install.packages("install.packages("rmarkdown")")
4-) Click Install

And problem has gone... And this is output.

This error also appears when there is a format issue in the yaml section of index.Rmd.

In my case, I encountered the error when the opening "---" in index.Rmd had a couple of white spaces " ---".

If you are having this problem, I would recommend knitting index.Rmd by itself (not building the book) before trying anything more drastic.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!