[Bioc-devel] library checking: question on require/depends

Laurent Gautier lgautier at gmail.com
Tue Jul 29 20:43:15 CEST 2008


Adding it in "Suggests" will keep R CMD check happy, as Sean told it.

One question, still:
Are you using the those packages in examples ? In that case, using a
smaller dataset might be a good idea.
If there is not any suitable smaller dataset currently avalaible, it
could be nice to create a demo-oriented one, with one chromosome for
example. This could also be used by other packages needing full
genome.


2008/7/29 Sean Davis <sdavis2 at mail.nih.gov>:
> On Tue, Jul 29, 2008 at 1:51 PM, mattia pelizzola
> <mattia.pelizzola at gmail.com> wrote:
>> Hi,
>>
>> I'm working on a new package. The 'build' is ok, but when running
>> 'check' I get a warning that I'm not sure on how to eliminate it.
>> The warning is :
>>
>> * checking for unstated dependencies in R code ... WARNING
>> 'library' or 'require' calls not declared from:
>>  BSgenome.Hsapiens.UCSC.hg17 BSgenome.Hsapiens.UCSC.hg18
>>
>> The reason of course is that I'm using the require function and I'm
>> not adding these libraries in 'Depends' or 'Suggests'. The point is
>> that I would not like to oblige users to install both hg17 and hg18
>> libraries, since they are huge (800Mb). This is going to be even more
>> important if I would support many other annotation libraries. The idea
>> was then to use require to load only the one requested from the user
>> (either hg17 or hg18).
>>
>> I'm going to submit this library to Bioconductor. Can I ignore this
>> warning, should I add all the annotation libraries in 'Depends', or is
>> there another way to fix this warning?
>
> This is what "Suggests" is for.
>
> Sean
>
> _______________________________________________
> Bioc-devel at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/bioc-devel
>



More information about the Bioc-devel mailing list