From jombart at biomserv.univ-lyon1.fr  Thu Dec 20 23:30:39 2007
From: jombart at biomserv.univ-lyon1.fr (Thibaut Jombart)
Date: Thu, 20 Dec 2007 23:30:39 +0100
Subject: [Rd] using example() with S4 documentation
Message-ID: <476AED0F.2000709@biomserv.univ-lyon1.fr>

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/



[Rd] using example() with S4 documentation
Thibaut Jombart