首页 > 解决方案 > 在 html 中使用 pdf 参数调用 knitr::include_graphics() 时出现“无法加载插件”

问题描述

我试图在 r-markdown 中包含一个 pdf 图形。奇怪的是,Pandoc 到 pdf 的输出完美无缺。html 输出会写入Couldn't load plugin,除此之外不显示任何内容。

这就是我试图调用该函数的方式:

knitr::include_graphics("plots1.pdf")

有什么可疑的吗?

标签: r-markdownknitr

解决方案


推荐阅读