Description
Help with Preparing a New Version of an R Package.
Description
Helps to prepare a release. Before releasing an R package it is important to update the DESCRIPTION file and the changelog. This package prepares these files and also updates the versions according to the branches. It relies heavily on the 'desc' packages.
README.md
{releaser}
{releaser} helps the developer to release their package and update informations (DESCRIPTION, CHANGELOG…) of the package.
Installation
You can install the development version of {releaser} from GitHub with:
# install.packages("remotes")
remotes::install_github("TanguyBarthelemy/releaser")
Usage
library("releaser")
You can extract the latest version of a package on GitHub and display the different future version:
version <- get_latest_version("rjdverse/rjd3toolkit")
#> Fetched DESCRIPTION from branch: v3.5.1
#> Version found on branch v3.5.1: 3.5.1
#> Dernière release : 3.5.1
#> Fetching branches from repository: rjdverse/rjd3toolkit
#> Found branches: develop, gh-pages, main, snapshot
#> Fetched DESCRIPTION from branch: develop
#> Version found on branch develop: 3.5.2
#> Version sur develop : 3.5.2
#> Fetched DESCRIPTION from branch: main
#> Version found on branch main: 3.5.1
#> Version sur main : 3.5.1
#> Fetched DESCRIPTION from branch: snapshot
#> Version found on branch snapshot: 3.5.1.9500
#> Version sur snapshot : 3.5.1.9500
get_different_future_version(version)
#> Package version bumped from '3.5.1' to '3.5.2'
#> Future patch version: 3.5.2
#> Package version bumped from '3.5.2' to '3.6.0'
#> Future minor version: 3.6.0
#> Package version bumped from '3.6.0' to '4.0.0'
#> Future major version: 4.0.0
#> current_version.Version future_patch_version future_minor_version
#> "3.5.1" "3.5.2" "3.6.0"
#> future_major_version
#> "4.0.0"