Description Details Classes and constructors Main functions/methods Disclaimer Inspiration and aknowledgements Author(s) References See Also
Makes it really easy to bump the version of an R package project placed under Git version control (see http://git-scm.com) to a new version number.
Version numbers must follow the semantical versioning conventions (see http://semver.org/).
GitVersion.S3
:
Constructor function for instances of class
GitVersion.S3
RPackageVersion.S3
:
Constructor function for instances of class
RPackageVersion.S3
SystemState.S3
:
Constructor function for instances of class
SystemState.S3
.
Used to track system states across function calls.
bumpPackageVersion
:
Retrieves the current package version from the DESCRIPTION
file,
suggest the next version number and prompts the user for a new
version number. After asking permission, the new version number is
written to the DESCRIPTION
file along with additional
information provided via desc_fields
. Currently, only
an element of form Date = NULL
is allowed/used, which
corresponds to also updating the Date
field of the
DESCRIPTION
file. desc_fields = list()
suppresses that.
Essentially, this function is a mere convenience wrapper for the
actual workhorse function bump
and its
method associated to class Bumpr.RPackageVersion.s3
.
In case anything goes wrong, the changes to DESCRIPTION
are
automatically rolled back.
bumpGitVersion
:
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.
Per default, the function expects that you want to include a remote repository in the version bump (default: 'origin'). This can be any valid Git remote repository, including a GitHub repository. In this case the bump commit as well as the new version (i.e. the new tag) are pushed to the remote repository as well. You can, however, also choose to only work with your local Git repository (**not recommended**). Simply answer the first question accordingly.
Essentially, this function is a mere convenience wrapper for the
actual workhorse function bump
and its
method associated to class Bumpr.GitVersion.s3
.
In case anything goes wrong, all changes made up to this point are automatically rolled back.
bump
:
The actual workhorse function of this package. Introduced in order to generalize the package's purpose and scope to other aspects than version bumping only.
The long-term goal of this package is to provide a simple interface to all sorts of things "that can be bumped".
This package is really new. So please test it with repositories that are not crucial for your productive work!
This package was greatly inspired by these ressources:
http://nvie.com/posts/a-successful-git-branching-model/: A very thorough and well designed branching model.
https://gist.githubusercontent.com/pete-otaqui/4188238/raw/9675e75948294fd3b05186f30af6ff97e7e9e47e/bumpversion.sh: Bash script for Git version bumping.
http://stackoverflow.com/questions/18648737/use-r-to-push-local-repo-to-github-on-windows: Description of how to access GitHub repositories via R using HTTP authentication.
Janko Thyson janko.thyson@gmail.com
http://github.com/jankothyson/bumpr
http://git-scm.com, https://github.com/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.