21.1 Package evolution

CRAN keeps history of package on GH and you can access it!

21.1.1 Package version number

  • package_version() is a function that convert strings with either . or - to s3 object that deal with version numbers
version <- package_version(c("1.0", c("0-9-1")))
class(version)
typeof(version)
  • utils::packageVersion() allows us to get the version of a package: useful to do check on package in function

  • even if - is accepted it is not recommended

  • You should use at least 3 components on your numbering system