1

In fact, I have the same question than Teema Daniel Laajala, but the answer provided does not work for me.

The question was about displaying images in R package documention. When I write exactly the same code than in the ?par documentation file, which is :

\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}}
}

the image does not display and all I can see is : imagenotdisplayed.

Though, I did the exact same code as above, put my image in the folder figures in the folder man... So I was wondering If I was missing something, like a package I should install or something else...

Thanks for your help !

Julien
  • 11
  • 4
  • Where did you put the image? It looks likes it needs to be int the `man/figures` folder (not the same place as the Rd file). – MrFlick Nov 09 '18 at 16:31
  • Sorry it was a mistake when I wrote the message, the image is in 'man/figures', not in 'man/image'. – Julien Nov 12 '18 at 08:18
  • Okay, for what it's worth, in fact it does work when I compile the package and use '? function' or 'help(function)', but the image does not display when I preview my file (function.Rd). – Julien Nov 28 '18 at 11:39

0 Answers0