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

2021-01-08 Thread Dirk Eddelbuettel
On 8 January 2021 at 11:32, Henrik Bengtsson wrote: | R CMD check --as-cran will give an ERROR if not all Suggest:ed | packages are installed and available when it runs. This can be overridden with R_CHECK_FORCE_SUGGESTS_=false which may be helpful if Suggests: has a long tail of dependencies,

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

2021-01-08 Thread Henrik Bengtsson
R CMD check --as-cran will give an ERROR if not all Suggest:ed packages are installed and available when it runs. /Henrik On Fri, Jan 8, 2021 at 11:25 AM Greg Freedman Ellis wrote: > > > It should almost certainly be included in Suggests, and nowhere else. > > If that means your tests are

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

2021-01-08 Thread Greg Freedman Ellis
> It should almost certainly be included in Suggests, and nowhere else. > If that means your tests are skipped, you should feel free to warn the > user in your test messages: but it shouldn't cause your tests to fail. I guess my worry is that my upstream dependencies will break something without

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

2021-01-08 Thread Duncan Murdoch
On 08/01/2021 9:17 a.m., Greg Freedman Ellis 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

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

2021-01-08 Thread Jeff Newmiller
This is normally where the Suggests field is used. On January 8, 2021 6:17:58 AM PST, Greg Freedman Ellis 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

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

2021-01-08 Thread Greg Freedman Ellis
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