[R] Find the package of a class given classname

Bert Gunter gunter.berton at gene.com
Sat Jan 11 07:13:13 CET 2014

This probably doesn't answer your question, but, amazingly enough, try
googling the class name.
It worked for GAlignmnets.

Incidentally, there's no reason class names have to be unique among R
packages.. And they can be hidden in namespaces.


Bert Gunter
Genentech Nonclinical Biostatistics
(650) 467-7374

"Data is not information. Information is not knowledge. And knowledge
is certainly not wisdom."
H. Gilbert Welch

On Fri, Jan 10, 2014 at 6:49 PM, Yuan Luo <yuan.hypnos.luo at gmail.com> wrote:
> How to find the package of a class given classname?
> For example, there is a class called GAlignments, I want to do something
> like
> attr("GAlignments", "package") that gives you the package where the class
> is defined? But of course, attr("GAlignments", "package") won't work...
> Thanks for any help!
> Yuan
>         [[alternative HTML version deleted]]
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list