Help with Preparing a New Version of an R Package

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.


{releaser}

CRANstatus

R-CMD-check Testcoverage CodeFactor muttest CodacyBadge lint

GH Pagesbuilt

{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.7.1
#> Version found on branch v3.7.1: 3.7.1
#> Dernière release : 3.7.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.7.1.9100
#> Version sur develop  : 3.7.1.9100
#> Fetched DESCRIPTION from branch: main
#> Version found on branch main: 3.7.1
#> Version sur main  : 3.7.1
#> Fetched DESCRIPTION from branch: snapshot
#> Version found on branch snapshot: 3.6.0.9000
#> Version sur snapshot  : 3.6.0.9000
get_different_future_version(version)
#> Package version bumped from '3.7.1' to '3.7.2'
#> Future patch version: 3.7.2
#> Package version bumped from '3.7.2' to '3.8.0'
#> Future minor version: 3.8.0
#> Package version bumped from '3.8.0' to '4.0.0'
#> Future major version: 4.0.0
#> current_version.Version    future_patch_version    future_minor_version 
#>                 "3.7.1"                 "3.7.2"                 "3.8.0" 
#>    future_major_version 
#>                 "4.0.0"

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("releaser")

1.2.1 by Tanguy Barthelemy, 3 months ago


https://github.com/TanguyBarthelemy/releaser, https://tanguybarthelemy.github.io/releaser/


Report a bug at https://github.com/TanguyBarthelemy/releaser/issues


Browse source code at https://github.com/cran/releaser


Authors: Tanguy Barthelemy [aut, cre, art, cph]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports gh, desc, base64enc, roxygen2

Suggests rlang, spelling, testthat


See at CRAN