In a custom package which imports a package from Bioconductor, what is the right DESCRIPTION file?
I added in my DESCRIPTION a line with Remote like so
Remotes:
bioc::3.14/dada2
as suggested by https://cran.r-project.org/web/packages/remotes/index.html vignette, but it still failed the R check() with error "Packages required not available". I am very confused about what is the right way to solve this problem, since multiple sources propose a different solution:
https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Package-Dependencies mention Additional_repository key in the DESCRIPTION
mention Remotes, suggesting one add a Remotes entry to DESCRIPTION with a specific syntax for Bioconductor dependencies
The following post suggest using blockViews R package development: How does one automatically install Bioconductor packages upon package installation?
What is the appropriate way to declare dependencies on packages on Bioconductor? The remotes support helped me satisfy a dependency on a package from Github, but not for bioconductor
R -e install.packages("BiocManager"); BiocManager::install("my_package", dependencies = c("Depends", "Imports", "LinkingTo", "Suggests", "Enhances"))This will install my_package and all the dependencies. – llrs Jan 24 '22 at 09:44R CMD check my_packageis used, but to check the package it needs all the dependencies (otherwise it cannot fully check the package). If you don't want to check your package you can simply build the packageR CMD build my_packageand share the tar.gz file. This will provide the package to users without any check (it could even be that your package is not installable). Hope this helps! – llrs Jan 24 '22 at 09:49remotes::install_deps(repos = BiocManager::repositories())which would only install dependencies from the right repositories but not the package being installed. – llrs Jan 24 '22 at 17:22?remotes::install_deps,?BiocManager::repositorieson the terminal. And here are links to their respective manuals: remotes, BiocManager – llrs Jan 24 '22 at 20:11