[Rd] using example() with S4 documentation
Thibaut Jombart
jombart at biomserv.univ-lyon1.fr
Thu Dec 20 23:30:39 CET 2007
Hi list,
Developping a plot method for a S4 class 'foo' (signature being x="foo",
y="missing"), I would like to access the example contained inside the
\examples{} section of the corresponding Rd file. This file contains the
aliases: \alias{plot-methods} and \alias{plot,foo,missing}. There is no
trouble to access the documentation using:
method ? plot("foo")
or
?plot(new("foo"))
Now, is it possible to have example() work as well ? I tried using the
"package" argument of "example" without success...
Thanks in advance.
Cheers,
Thibaut.
--
######################################
Thibaut JOMBART
CNRS UMR 5558 - Laboratoire de Biométrie et Biologie Evolutive
Universite Lyon 1
43 bd du 11 novembre 1918
69622 Villeurbanne Cedex
Tél. : 04.72.43.29.35
Fax : 04.72.43.13.88
jombart at biomserv.univ-lyon1.fr
http://lbbe.univ-lyon1.fr/-Jombart-Thibaut-.html?lang=en
http://pbil.univ-lyon1.fr/software/adegenet/
More information about the R-devel
mailing list