Package version tools

  • usethis::create_package() starts with version number 0.0.0.9000.

  • usethis::use_version() increments Version in DESCRIPTION and adds a new heading in NEWS.md. If called with no arguments it presents a helpful menu.

usethis::use_version()
#> Current version is 0.1.
#> What should the new version be? (0 to exit) 
#> 
#> 1: major --> 1.0
#> 2: minor --> 0.2
#> 3: patch --> 0.1.1
#> 4:   dev --> 0.1.0.9000
#> 
#> Selection: