I have a bookdown project that I'm trying to output as a Word document. I added the following to _output.yml and saved:
bookdown::word_document2: toc: true
And when I try to build the book, I get this error:
Error: Functions that produce HTML output found in document targeting docx output. Please change the output type of this document to HTML. Alternatively, you can allow HTML output in non-HTML formats by adding this option to the YAML front-matter of your rmarkdown file: always_allow_html: true Note however that the HTML output will not be visible in non-HTML formats. Execution halted Exited with status 1.
The project has ggplots and tables using DT and kable. I already have webshot installed, I double checked:
> webshot::is_phantomjs_installed()  TRUE
Building to a PDF works fine, the problem is only when trying to build to a word document. If anyone has any suggestions that would be great. My thesis is due in a couple days