ernesto
2007-Jul-03 10:40 UTC
[Rd] How to get the names of the classes exported by a specific package.
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
Martin Morgan
2007-Jul-03 11:15 UTC
[Rd] How to get the names of the classes exported by a specific package.
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