Skip to content
Prev 8968 / 12125 Next

[R-pkg-devel] How to declare Bioconductor Dependencies in the Description File of my R Package

? Thu, 16 Mar 2023 11:09:16 +0000
"Ruff, Sergej" <Sergej.Ruff at tiho-hannover.de> ?????:
install.packages() doesn't install suggested packages by default: the
`dependencies` argument defaults to NA, which means c("Depends",
"Imports", "LinkingTo"), which doesn't include 'Suggests'.

What if you pass dependencies = TRUE? Given the fact that Bioconductor
is absent from getOption('repos') by default, the package will still
not be installed. BiocManager::install() is the supported way to
install packages from Bioconductor:
https://cran.r-project.org/package=BiocManager/vignettes/BiocManager.html#installing-bioconductor-cran-or-github-packages

I think that BiocManager::install('YOUR_PACKAGE', dependencies = TRUE)
will install both your package and limma. It's a bit hard to verify
because your package should live in a repository, but if you'd like to
be sure, spin up a drat <https://CRAN.R-project.org/package=drat> repo
on a local server and add it to options(repos = ...) before trying to
install your package.
No, this is the right way to declare Bioconductor dependencies for CRAN
packages.
The CRAN website will detect the Bioconductor dependency and highlight
it with a different colour, making it a link to the Bioconductor
website. See, e.g., the BiocManager package and its reverse
dependencies: https://CRAN.R-project.org/package=BiocManager

Thread (32 messages)

Ruff, Sergej How to declare Bioconductor Dependencies in the Description File of my R Package Mar 16 Ivan Krylov How to declare Bioconductor Dependencies in the Description File of my R Package Mar 16 Tiago Olivoto How to declare Bioconductor Dependencies in the Description File of my R Package Mar 16 Ruff, Sergej How to declare Bioconductor Dependencies in the Description File of my R Package Mar 16 Duncan Murdoch How to declare Bioconductor Dependencies in the Description File of my R Package Mar 16 Tiago Olivoto How to declare Bioconductor Dependencies in the Description File of my R Package Mar 16 Tiago Olivoto How to declare Bioconductor Dependencies in the Description File of my R Package Mar 16 Ivan Krylov How to declare Bioconductor Dependencies in the Description File of my R Package Mar 16 Martin Morgan How to declare Bioconductor Dependencies in the Description File of my R Package Mar 16 Ruff, Sergej How to declare Bioconductor Dependencies in the Description File of my R Package Mar 17 Duncan Murdoch How to declare Bioconductor Dependencies in the Description File of my R Package Mar 17 Ruff, Sergej How to declare Bioconductor Dependencies in the Description File of my R Package Mar 17 Ivan Krylov How to declare Bioconductor Dependencies in the Description File of my R Package Mar 17 Ruff, Sergej How to declare Bioconductor Dependencies in the Description File of my R Package Mar 17 Ivan Krylov How to declare Bioconductor Dependencies in the Description File of my R Package Mar 17 Ruff, Sergej How to declare Bioconductor Dependencies in the Description File of my R Package Mar 17 Duncan Murdoch How to declare Bioconductor Dependencies in the Description File of my R Package Mar 17 Uwe Ligges How to declare Bioconductor Dependencies in the Description File of my R Package Mar 17 Ruff, Sergej How to declare Bioconductor Dependencies in the Description File of my R Package Mar 17 Uwe Ligges How to declare Bioconductor Dependencies in the Description File of my R Package Mar 17 Ivan Krylov How to declare Bioconductor Dependencies in the Description File of my R Package Mar 17 Duncan Murdoch How to declare Bioconductor Dependencies in the Description File of my R Package Mar 17 Ruff, Sergej How to declare Bioconductor Dependencies in the Description File of my R Package Mar 17 Simon Urbanek How to declare Bioconductor Dependencies in the Description File of my R Package Mar 17 Ruff, Sergej How to declare Bioconductor Dependencies in the Description File of my R Package Mar 17 Berry Boessenkool How to declare Bioconductor Dependencies in the Description File of my R Package Mar 18 Ruff, Sergej How to declare Bioconductor Dependencies in the Description File of my R Package Mar 18 Ruff, Sergej How to declare Bioconductor Dependencies in the Description File of my R Package Mar 20 Ruff, Sergej How to declare Bioconductor Dependencies in the Description File of my R Package Mar 20 Ivan Krylov How to declare Bioconductor Dependencies in the Description File of my R Package Mar 20 Ruff, Sergej How to declare Bioconductor Dependencies in the Description File of my R Package Mar 20 Ivan Krylov How to declare Bioconductor Dependencies in the Description File of my R Package Mar 20