Skip to content
Back to formatted view

Raw Message

Message-ID: <476AED0F.2000709@biomserv.univ-lyon1.fr>
Date: 2007-12-20T22:30:39Z
From: Thibaut Jombart
Subject: using example() with S4 documentation

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/