I have a bookdown book I've been work on at my office for several months. Recently however, the "Build Book" radio button no longer works in the RStudio IDE. It seems similar to this issue
The error I receive is
==> rmarkdown::render_site(encoding = 'UTF-8')
Error in rmarkdown::render_site(encoding = "UTF-8") :
No site generator found.
Execution halted
Exited with status 1.
I suspect IT might have done something behind the scene possibly with our PATH. As I'm not the only person experiencing the problem suddenly.
The error from render_site() says that it can't find a site generator. Does the YAML header of your index.Rmd file contain an entry for the bookdown site generator?
I'm also having this problem. Specifically, the Build Book button now reads "Build Website". There's also no option for selecting Bookdown in the Configure Build menu.
When I run rmarkdown::render_site(encoding = 'UTF-8') I get the same error as @briandavisstats
site: bookdown::bookdown_site is included in the bookdown yaml header
@briandavisstats I did have success using rmarkdown::render("your_file.rmd", output_format = "all") rather than rmarkdown::render_site() or bookdown::render_book(), which both failed for me. My build button still reads "Build Website" though.
@kevinusheyhere's the repo in question. I'm building from individual files in /docs
For rmarkdown::render_site(), this line must appear in the YAML header of the index.Rmd file. This is why the error states that it can't find the site generator.
From looking at your repository, it appears that you are using the file named index.Rmd to be a simple HTML page that then links to the bookdown chapters. I don't think this will work with the standard render_site() approach.
One option would be to use a custom build script. You can specify exactly what you want to run, e.g. something like:
Then you can configure the RStudio build tools to use your custom script to build your site (Build -> Configure Build Tools...) instead of using render_site().