incVer: Increment version number of a package

Description Usage Arguments Details Author(s)

View source: R/increment_version_numbers.r

Description

Reads DESCRIPTION from installed package 'pkg' and makes a new one in the specified 'folder'. Four options for 'increase' are "major", minor", "patch" and "dev" respectively incrementing the first to fourth element of version 0.1.0.9012. Also changes the date to system date.

Usage

1
incVer(pkg, folder = ".", increase = "dev")

Arguments

pkg

A character vector with the name of the package to update.

folder

Folder in which DESCRIPTION is saved. Can be left as '.'.

increase

Character string, either 'major', 'minor', 'patch' or 'dev.'

Details

Function originally posted by alko989 here https://stackoverflow.com/q/24209336. Hadley Wickham discusses when and how increment version numbers in this book http://r-pkgs.had.co.nz/release.html#release-version

Author(s)

alko989, Alban Sagouis


AlbanSagouis/myToolbox documentation built on Feb. 1, 2021, 1:08 p.m.