Hello, this is *not* a new behavior on CRAN, at least on (re-)submissions to CRAN. The package has to pass R CMD check --as-cran with all OK. If one of the Suggests:ed package is not installed, but one of your examples or package tests needed it, that would be detected by the check system.
The win-builder service is will detect this (https://win-builder.r-project.org/). See <https://github.com/HenrikBengtsson/port4me/blob/develop/.github/workflows/R-CMD-check.yaml> for an example how to do this on GitHub Actions. If you're on macOS, and have installed R the default way, it takes more work to test on that platform. It works out of the box on Linux and MS Windows. See the '[R-SIG-Mac] CRAN installer for macOS - directory permissions' thread started in April 2022 <https://stat.ethz.ch/pipermail/r-sig-mac/2022-April/014371.html>, continued in May 2022 <https://stat.ethz.ch/pipermail/r-sig-mac/2022-May/thread.html>, and June 2022 <https://stat.ethz.ch/pipermail/r-sig-mac/2022-June/014469.html>. It was then renamed to 'System-wide site library [Was: CRAN installer for macOS - directory permissions]' in June 2022 <https://stat.ethz.ch/pipermail/r-sig-mac/2022-June/014501.html>. /Henrik On Tue, Jul 18, 2023 at 8:07 PM William Gearty <willgea...@gmail.com> wrote: > > Hi John, > > You need to set the R CMD check environment variable > _R_CHECK_FORCE_SUGGESTS_ to FALSE/0. You should be able to do this > with the env_vars > argument in rhub::check(). You can also achieve this with github actions by > customizing your yaml file (example here: > https://github.com/willgearty/deeptime/blob/master/.github/workflows/R-CMD-check.yaml#L57 > ). > > Best, > Will > > ------------------------------ > *William Gearty* > *Lerner-Gray Postdoctoral Research Fellow* > Division of Paleontology > American Museum of Natural History > williamgearty.com > > > > On Tue, Jul 18, 2023 at 10:38 AM John Harrold <john.m.harr...@gmail.com> > wrote: > > > Howdy Folks, > > > > I recent had a package start failing because I wasn't checking properly in > > my tests to make sure my suggested packages were installed before running > > tests. I think this is something new running on CRAN where packages are > > tested with only the packages specified as Imports in the DESCRIPTION file > > are installed. It took me a bit of back and forth to get all of these > > issues worked out. I was wondering if anyone has a good way to run R CMD > > check with only the imports installed? A github action, or a > > specific platform on rhub? > > > > Thank you, > > > > John > > :wq > > > > [[alternative HTML version deleted]] > > > > ______________________________________________ > > R-package-devel@r-project.org mailing list > > https://stat.ethz.ch/mailman/listinfo/r-package-devel > > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-package-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-package-devel ______________________________________________ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel