在R包文档文件中包含图像

时间:2018-11-09 16:16:52

标签: r package documentation rd

实际上,我与Teema Daniel Laajala具有相同的question,但提供的答案对我不起作用。

问题是关于在R包文档中显示图像。 当我编写与?par documentation file中完全相同的代码时:

\item{\code{mai}}{A numerical vector of the form \code{c(bottom,
    left, top, right)} which gives the margin size specified in
  inches.\cr
  \if{html}{\figure{mai.png}{options: width="35\%" alt="Figure: mai.png"}}
  \if{latex}{\figure{mai.pdf}{options: width=7cm}}
}

该图像没有显示,我只能看到imagenotdisplayed

尽管如此,我执行了与上面完全相同的代码,将我的图像放在文件夹中的文件夹中... 所以我想知道我是否缺少某些东西,例如应该安装的软件包或其他东西...

感谢您的帮助!

0 个答案:

没有答案