increment_version: Increment version

Description Usage Arguments Details See Also

View source: R/etc.R

Description

Increment version number in the DESCRIPTION file of a given package

Usage

1
2
increment_version(projname = ".", comp = c("patch", "minor", "major"),
  dev = FALSE, quiet = FALSE)

Arguments

projname

path to a package source, by default "." (current directory)

comp

which component to increment. By default "patch"

dev

logical; is it a development version?

quiet

logical; if FALSE (default) results will be printed to console

Details

Writes version numbers of the format "maj.min.patch.dev", but will also read formats with hyphen seperated components, like "maj.min-patch". If dev is TRUE, a version number of the form "maj.min.patch.9000" is used, otherwise "maj.min.patch". Other than version number, date, imports and R version number is updated as well.

See Also

desc_read, desc_write


AkselA/R-projector documentation built on June 19, 2020, 4:24 p.m.