When I try to compile an Rmarkdown document to pdf, I get this error:
Error: Functions that produce HTML output found in document targeting latex 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: yes
Note however that the HTML output will not be visible in non-HTML formats.
Does anyone know what this means?
You need to choose what format you want to KNIT to, tried to look at mine.
Have you tried the following? (FROM: https://bookdown.org/yihui/bookdown/html-widgets.html)
It worked for me. See also: https://github.com/rstudio/bookdown/issues/440