increment_dev_version: increment_dev_version

increment_dev_versionR Documentation

increment_dev_version

Description

Increment development version number in DESCRIPTION and 'codemeta.json' if it exists. Current directory must be within an R package.

Usage

increment_dev_version()

Details

The 'usethis::use_dev_version()' function only adds a fixed '.9000' as the fourth component. This function is intended to be used to increment this fourth component on every commit. It will also update the version number in 'codemeta.json' as generated by the 'codemetar' package, if that file exists.

This function can easily be alised for ease of use, for example in '~/.bash_aliases' as 'incr="Rscript -e 'mpmisc::increment_dev_version()'"'. You then only need to type 'incr' in your shell to automatically increment the version.


mpadge/mpmisc documentation built on Oct. 29, 2024, 5:30 p.m.