I no longer believe this to be good advice - I think you should only declare a specific dependency if you want to strongly assert that your package works with those versions. For example, all tidyverse versions depend on R 3.2 and later, because we test on all those versions.
Hadley On Friday, July 26, 2019, Jarrett Phillips <phillipsjarre...@gmail.com> wrote: > Hello, > > Numerous CRAN packages report minimum R versions within the Depends field > of the DESCRIPTION file. > > Is this reporting always necessary? > > Hadley Wickham's book "R Packages" states: > > "You can also use Depends to require a specific version of R, e.g. > Depends: R > (>= 3.0.1) . As with packages, it’s a good idea to play it safe and require > a version greater than or equal to the version you’re currently using. > devtools::create() will do this for you." > > devtools::check() doesn't warn about not specifying R version, so I am just > curious. > > > Thanks. > > Cheers, > > Jarrett > > [[alternative HTML version deleted]] > > ______________________________________________ > R-package-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-package-devel > -- http://hadley.nz [[alternative HTML version deleted]] ______________________________________________ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel