Skip to content
Prev 1030 / 12125 Next

[R-pkg-devel] Handling Not-Always-Needed Dependencies? - Part 2

On 8/4/2016 11:51 AM, Dirk Eddelbuettel wrote:
As another package maintainer, I had almost the identical question 
reading the previous (long) thread, but the three answers here don't 
give the same answer.  My question I can make even more concrete:

I use the testthat package for my testing.  I never use it in the R code 
itself, and it is explicitly only used for testing.  Should that be 
included as "Depends" because every test requires it or "Suggests" 
because no end user ever needs it?

If "Depends", then it leads to over-installation of the package by end 
users who don't care about running tests locally.  If "Suggests", then 
all of the tests would fail (assuming that Dirk's suggestion is 
implemented).

At a loss,

Bill