I’m using Travis-CI to test a package aimed for Bioconductor: https://travis-ci.com/BUStools/BUSpaRse/jobs/210146459. The package passed R CMD check and BiocCheck locally, but on Travis, the time limit of 50 minutes was exceeded. The vast majority of time spent was to install dependencies, but I found that many packages installed, such as edgeR, are never used in my package, but are suggested by Bioconductor dependencies of my package, such as plyranges, which depends on GenomicRanges, which suggests a lot of packages. I didn’t install some of those suggested packages locally and nothing went wrong, so I don’t think I need those packages.
So my question is, can I skip installing packages suggested by dependencies? If that’s possible, then the actual R CMD check can finish before the time limit is exceeded.