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

Martin Morgan mtmorgan at fhcrc.org
Tue Jul 3 13:15:18 CEST 2007


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



More information about the R-devel mailing list