I have a bookdown "book" that renders fine into HTML, but with PDF I get this message:
Error: Functions that produce HTML output found in document targeting latex output.
Please change the output type of this document to HTML.
I have read that installing webshot (and phantomJS) fixes this, by taking a screenshot of the offending output.
But they are installed. For instance, I can happily use webshot to take an image of any webpage. So
In addition, I see this:
> is_phantomjs_installed()  TRUE
So what am I doing wrong? Any help greatly appreciated.
R version 4.0.2 (2020-06-22)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Mojave 10.14.6
Matrix products: default
attached base packages:
 stats graphics grDevices utils datasets methods base
other attached packages:
 webshot_0.5.2 bookdown_0.20
loaded via a namespace (and not attached):
 ps_1.3.3 packrat_0.5.0 digest_0.6.25 R6_2.4.1 jsonlite_1.7.0 magrittr_1.5 evaluate_0.14
 rlang_0.4.7 stringi_1.4.6 curl_4.3 rstudioapi_0.11 callr_3.4.3 webex_0.9.1 rmarkdown_2.3
 tools_4.0.2 stringr_1.4.0 processx_3.4.3 xfun_0.15 yaml_2.2.1 rsconnect_0.8.16 compiler_4.0.2
 askpass_1.1 htmltools_0.5.0 openssl_1.4.2 knitr_1.29