Skip to content
Prev 14664 / 21307 Next

[Bioc-devel] Question about package dependency

put ggplot2 in Suggests:

see 1.1.3 of https://cran.r-project.org/doc/manuals/r-release/R-exts.html

The ?Suggests? field uses the same syntax as ?Depends? and lists packages
that are not necessarily needed. This includes packages used only in
examples, tests or vignettes (see Writing package vignettes
<https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Writing-package-vignettes>),
and packages loaded in the body of functions. E.g., suppose an example11
<https://cran.r-project.org/doc/manuals/r-release/R-exts.html#FOOT11> from
package *foo* uses a dataset from package *bar*. Then it is not necessary
to have *bar* use *foo* unless one wants to execute all the
examples/tests/vignettes: it is useful to have *bar*, but not necessary.
Version requirements can be specified but should be checked by the code
which uses the package.
On Tue, Feb 19, 2019 at 10:02 AM Xu Ren <xuren2120 at gmail.com> wrote: