Skip to content
Prev 2018 / 21312 Next

[Bioc-devel] annotation data in package

Dear list,

I am maintaining a package (rHVDM) and I have the following problem.  
One of the commands in the package needs as input, plattform-specific  
data. I started by putting the plattform-specific data in the data  
directory of the package but this required, on the part of the user,  
to load the data first (with a command data(...)) prior to using the  
command. In a bid to avoid that step I have embedded the relevant  
tables directly in one of the .R files. However this is not terribly  
elegant, if not completely wrong from a programming point of view.  
Moreover, these tables will be growing in size which makes the  
present situation even more shaky.

So, is there a way, upon loading the package to automatically load  
these data too, and how? (for example, the affy package recognizes  
the main affy chips).

In advance, many thanks

Martino