bumpGitVersion: Bump Git Version Number

Description Usage Arguments Details Asumptions Disclaimer Recommendations Author(s) References See Also Examples

Description

Bumps an R package project to the next Git version number.

Usage

1
2
bumpGitVersion(project = devtools::as.package(".")$package,
  temp_credentials = FALSE, .ns = NULL, ...)

Arguments

project

character. Name of the project under Git version control.

temp_credentials

logical. TRUE: delete HTTPS credentials after each bump; FALSE: permanently store HTTPS credentials in _netrc file. See details.

.ns

Signature argument. Object containing namespace information.

...

Further arguments to be passed to subsequent functions/methods.

Details

Performs all sorts of Git-related checks and tasks in order to take care that everything necessary is done that is related to bumping a project to a higher version number.

This provided version number is transferred to v{version-number}, e.g. v0.1.1, and added as a Git tag. All commits linked to the previous version/tag are queried and added to file CHANGES.md. Additionally, a template section to state the changes in the new version is added in file NEWS.md.

Files DESCRIPTION and CHANGES.md are automatically commited to signal the version bump.

Optionally, you can push the new version (i.e. the new tag) as well as the associated commit to a remote repository (default: origin). This can be any valid Git remote repository, including a GitHub repository

Essentially, this function is a mere convenience wrapper for the actual workhorse function bump and its method associated to class Bumpr.GitVersion.s3.

Asumptions

Disclaimer

This package is really new. So please test this function with repositories that are not crucial for your productive work!

Recommendations

Author(s)

Janko Thyson janko.thyson@gmail.com

References

http://github.com/jankothyson/bumpr

See Also

bumpGitVersion-GitVersion.S3-method bumpPackageVersion

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 

##------------------------------------------------------------------------------
## DISCLAIMER  
##------------------------------------------------------------------------------

## Please that with repositories that are not crucial for your productive work!

## Make sure that you set your working directory to your package
## project's root directory and that you've read and understood the 
## assumptions that this function makes!
  
bumpGitVersion()


## End(Not run)

rappster/bumpr documentation built on May 26, 2019, 11:09 p.m.