Skip to content
Prev 1731 / 21307 Next

[Bioc-devel] Upcoming release: *Please* revise your Depends and Suggests of DESCRIPTION

Hi developers,
Henrik Bengtsson wrote:
[...]
Note that currently, when I do:

  biocLite("<somepackage>", dependencies=TRUE)  # equivalent to the above

I end up with tons of packages that I'm not necessarily interested in.

This is because the behaviour of install.packages() (the backend of biocLite)
when "Suggests" is specified in the 'dependencies' argument is to follow
recursively the Suggests field. This is obviously the right thing to do for
the Depends and Imports fields but IMO the Suggests field should be treated
differently i.e. only packages *directly* suggested by <somepackage> should be
installed (+ the packages that those suggested packages depend on or import,
recursively, of course), but not the packages that the suggested packages
suggest :-P

It could be that this behaviour of install.packages() is partly responsible
of the too many installed packages that the user experiences sometimes...

Cheers,
H.