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

From: Martin Morgan <mtmorgan_at_fhcrc.org>
Date: Tue, 03 Jul 2007 04:15:18 -0700

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

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Tue 03 Jul 2007 - 11:19:37 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 03 Jul 2007 - 11:35:51 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.