From mtmorgan at fhcrc.org  Tue Jul  3 13:15:18 2007
From: mtmorgan at fhcrc.org (Martin Morgan)
Date: Tue, 03 Jul 2007 04:15:18 -0700
Subject: [Rd] How to get the names of the classes exported by a specific
 package.
In-Reply-To: <468A2782.9010606@ipimar.pt> (ernesto@ipimar.pt's message of
	"Tue, 03 Jul 2007 11:40:02 +0100")
References: <468A2782.9010606@ipimar.pt>
Message-ID: <6phsl8568mx.fsf@gopher4.fhcrc.org>

Hi Ernesto,

As a hack,

> library(FLCore)
Loading required package: lattice
FLCore 1.4-4 - "Golden Jackal" 
> these <- ls("package:FLCore", all.names=TRUE)
> res <- metaNameUndo(these, prefix="C")
> as.character(res)
 [1] "FLBiol"    "FLBiols"   "FLCatch"   "FLFleet"   "FLFleets"  "FLIndex"  
 [7] "FLIndices" "FLQuant"   "FLQuants"  "FLSR"      "FLStock"   "FLStocks" 

Martin

ernesto <ernesto at ipimar.pt> writes:

> Hi,
>
> I'm writing some functions to generate Rd files for a S4 package. I want 
> to have 2 character vectors with the names of the S4 classes and the 
> methods exported by a package. To get the info about methods I'm using 
> "getGenerics(where="package:FLCore")" however I can not find a similar 
> process to get the S4 classes. Are there functions to access this 
> information ?
>
> Best and thanks
>
> EJ
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel

-- 
Martin Morgan
Bioconductor / Computational Biology
http://bioconductor.org



[Rd] How to get the names of the classes exported by a specific package.
Martin Morgan