This is normally where the Suggests field is used. On January 8, 2021 6:17:58 AM PST, Greg Freedman Ellis <gdferm...@gmail.com> wrote: >Hi all, > >I'm trying to update a package to conform to pass tests given >`_R_CHECK_DEPENDS_ONLY_=TRUE`. > >In this package, we only use the package `httptest` during testing, but >the >tests are (almost) meaningless if it is not installed, so I would like >to >indicate that it is a required package rather than skipping tests if it >is >not installed. > >If I move `httptest` to Depends, then I get the error CRAN check note: >> Namespace in Imports field not imported from: ‘httptest’ >> All declared Imports should be used. > >I think this would best be solved by a DESCRIPTION field that indicates >a >package is required, but only for tests, but I do not see such a field. >The >only solution I can think of is to have a trivial import of `httptest` >in >the main package to silence the NOTE. Is there a better solution? > >Greg Freedman Ellis > > [[alternative HTML version deleted]] > >______________________________________________ >R-package-devel@r-project.org mailing list >https://stat.ethz.ch/mailman/listinfo/r-package-devel
-- Sent from my phone. Please excuse my brevity. ______________________________________________ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel