I like to keep my R packages up to date, and in developing my own package, I want to stick to @Hadley's advice:
Generally, it’s always better to specify the version and to be conservative about which version to require. Unless you know otherwise, always require a version greater than or equal to the version you’re currently using.
So, I'll need some of those here in DESCRIPTION
:
Imports:
knitr (>= 1.13),
rmarkdown (>= 1.0)
Is there an existing tool to programmatically update the versions of dependencies based on the packages I currently have installed?
I know this is a small thing and I can do this manually, but I just know this is the kind of thing that is easily forgotten.
Using the locally installed version of a package as a minimum dependency also seems to make sense because I tested / build with those dependencies.
Is there a reason why I shouldn't do this?
This shld do what you ask (well, you still need to cut/paste the output into
DESCRIPTION
:-)One of your packages:
Just to show edge cases are handled: