R markdown compile error:

后端 未结 3 1839
你的背包
你的背包 2021-01-12 07:18

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.         


        
3条回答
  •  深忆病人
    2021-01-12 08:08

    Have you tried the following? (FROM: https://bookdown.org/yihui/bookdown/html-widgets.html)

    install.packages("webshot")
    webshot::install_phantomjs()
    

    It worked for me. See also: https://github.com/rstudio/bookdown/issues/440

提交回复
热议问题