[R-pkg-devel] Package used unconditionally only in testing

Jeff Newmiller jdnewm|| @end|ng |rom dcn@d@v|@@c@@u@
Fri Jan 8 17:13:18 CET 2021

This is normally where the Suggests field is used.

On January 8, 2021 6:17:58 AM PST, Greg Freedman Ellis <gdfermail using gmail.com> wrote:
>Hi all,
>I'm trying to update a package to conform to pass tests given
>In this package, we only use the package `httptest` during testing, but
>tests are (almost) meaningless if it is not installed, so I would like
>indicate that it is a required package rather than skipping tests if it
>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
>package is required, but only for tests, but I do not see such a field.
>only solution I can think of is to have a trivial import of `httptest`
>the main package to silence the NOTE. Is there a better solution?
>Greg Freedman Ellis
>	[[alternative HTML version deleted]]
>R-package-devel using r-project.org mailing list

Sent from my phone. Please excuse my brevity.

More information about the R-package-devel mailing list