R markdown编译错误: [英] R markdown compile error:
本文介绍了R markdown编译错误:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我尝试将Rmarkdown文档编译为pdf时,出现此错误:
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?
推荐答案
您是否尝试过以下方法? (从: https://bookdown.org/yihui/bookdown/html-widgets.html )
Have you tried the following? (FROM: https://bookdown.org/yihui/bookdown/html-widgets.html)
install.packages("webshot")
webshot::install_phantomjs()
对我有用.另请参阅: https://github.com/rstudio/bookdown/issues/440
It worked for me. See also: https://github.com/rstudio/bookdown/issues/440
这篇关于R markdown编译错误:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文