From dtenenba at fhcrc.org  Wed May 11 21:13:26 2011
From: dtenenba at fhcrc.org (Dan Tenenbaum)
Date: Wed, 11 May 2011 12:13:26 -0700
Subject: [Rd] How to document man/*.Rd pages with images?
In-Reply-To: <C9F056EB.4153%sean.mcguffee@gmail.com>
References: <C9F056EB.4153%sean.mcguffee@gmail.com>
Message-ID: <BANLkTikh9pT6R_obDz+a5UzpfrY1cDLmUg@mail.gmail.com>

On Wed, May 11, 2011 at 12:08 PM, Sean Robert McGuffee
<sean.mcguffee at gmail.com> wrote:
> Hi,
> I?m trying to figure out how to put images into my package?s help
> documentation. I?ve gotten to the point where I can put the images in the
> /inst/doc/ directory. I have also gotten to the point where I have package
> checks without any warnings. I couldn?t find the terms ?picture,? ?image,?
> or ?graphic? in a text search within the Writing R Extensions: 2 Writing R
> documentation files
> <http://cran.r-project.org/doc/manuals/R-exts.html#Writing-R-documentation-f
> iles>
> I tried a couple of LaTeX guesses, but they lead to the following errors on
> check:
> Warning: /LAB/SRM/PROGS/R_PACKAGES/Ralign/man/Ralign139.Rd:3: unexpected
> UNKNOWN '\usepackage'
> Warning: /LAB/SRM/PROGS/R_PACKAGES/Ralign/man/Ralign139.Rd:36: unknown macro
> '\includegraphics'
> What is the right way to do this?
> Thanks,
> Sean
>

Given a graphics file called foo.png, you can include it in a vignette
as follows:
\includegraphics[width=0.5\textwidth]{foo}

http://amath.colorado.edu/documentation/LaTeX/reference/figures.html
Dan


>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>



[Rd] How to document man/*.Rd pages with images?
Dan Tenenbaum