Skip to content
Prev 7531 / 12125 Next

[R-pkg-devel] Inconsistent available package dependencies

Michael,

this is really a CRAN question rather than a package question so you may have more luck asking CRAN, but generally it is not a a good idea to have strong dependencies (Depends/Imports) on Bioconductor packages. If you want to use non-CRAN packages I would recommend weak depends like Suggests since your package won't work otherwise. For example, Bioconductor does not provide any binaries for the big-sur CRAN release of R, so your package cannot be installed by users if it depends on any BioC packages with native code. In fact, the check report you linked already warns you about your dependencies in general:

Version: 4.0.2
Check: package dependencies
Result: NOTE
    Imports includes 22 non-default packages.
    Importing from so many packages makes the package vulnerable to any of
    them becoming unavailable. Move as many as possible to Suggests and
    use conditionally.

FWIW the reason you got the notification later is that macOS checks are not done immediately on submission otherwise the package would not have been accepted in the first place. That said, if you have issues with dependencies on the macOS build machines just contact me and I can install them if they are available (I have now kick-started a script that attempts to automatically detect and install missing dependencies if available so you may see it in the next check run), but as discussed above you should still re-think your dependencies.

Cheers,
Simon