[BioC] The usage of ls("package:hgu95av2.db") shown in AnnotationDbi.pdf

Peng Yu pengyu.ut at gmail.com
Fri Aug 21 01:40:38 CEST 2009


On Thu, Aug 20, 2009 at 5:14 PM, Sean Davis<seandavi at gmail.com> wrote:
>
>
> On Thu, Aug 20, 2009 at 6:05 PM, Peng Yu <pengyu.ut at gmail.com> wrote:
>>
>> Hi,
>>
>> in AnnotationDbi.pdf, it gives the following example code. I don't
>> quite understand the second command. Does it mean that 'hgu95av2.db'
>> is in the namespace of package? What does ":" mean?
>>
>> library("hgu95av2.db")
>> ls("package:hgu95av2.db")
>
> This is a way of specifying the environment in which to look for R objects.
> See the help page for search() for details about what this represents.
> Also, you can try search() in your workspace to get an idea of how ls() and
> search() work together.

By 'environment', you mean something similiar to 'namespace' in C++,
right? Sorry that I have to relate a concept of R to a concept in C++,
because C++ is the language that I am most familiar with.

Regards,
Peng



More information about the Bioconductor mailing list