Re: [R] Find the package of a class given classname

2014-01-13 Thread Hadley Wickham
>> 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... > > You

Re: [R] Find the package of a class given classname

2014-01-11 Thread Yuan Luo
This is exactly what I am looking for. Thanks all for your help! Best, Yuan On Sat, Jan 11, 2014 at 1:28 AM, Hervé Pagès wrote: > Hi Yuan, > > > On 01/10/2014 06:49 PM, Yuan Luo wrote: > >> How to find the package of a class given classname? >> For example, there is a class called GAlignments,

Re: [R] Find the package of a class given classname

2014-01-10 Thread Hervé Pagès
Hi Yuan, On 01/10/2014 06:49 PM, Yuan Luo 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("GAlignment

Re: [R] Find the package of a class given classname

2014-01-10 Thread Bert Gunter
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. Cheers, Bert Bert Gunter Genentech Nonclinical Biosta

[R] Find the package of a class given classname

2014-01-10 Thread Yuan Luo
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! Y