R package CRAN note for package dependencies and warnings in tests.

Hi,
I'm planning to submit my first package to CRAN. I've heard that you should not have any errors, warnings or notes. However, I get the Note stating that there are too many package dependencies:

"Imports includes 24 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."

  1. Is this note something I have to address in regard to a CRAN submission?
  2. Does it make a difference to state that all/most packages used is OK to be included because they are well-maintained?
  3. Is it possible to use tidyverse as a dependency instead of each individual package (I understand that this to some extent defeats the purpose with the limit; although having a 20-package-limit feels rather arbitrary anyway and the focus should also be on using well-maintained packages).

Warnings in tests
I have created test cases for the package; however, in order to keep the size limit I need to get use fewer cases than normally used; and this creates different warnings when running the test. Is this OK to have these test related warnings when submitting CRAN?

Thanks in advance!
John

1 Like