All development should be done in the develop
branch of the package GithHub repository. The aim should be to have a workable version in develop
branch, so make sure your package passes R check locally before pushing to the develop
branch.
The head of the master
branch should be the latest released version of the package. No changes should be directly pushed to the master
branch.
All branches are monitored by travis. Travis is a continuous integration system, meaning that any change pushed to one of the branches triggers the package to be built, and R check to be performed. Any warnings or errors that occur during this process will cause an e-mail to be sent to the package maintainers.
Each package has a three-digit version number.
New micro versions (e.g. from 4.3.2 to 4.3.3) indicate bug fixes only. No new functionality, and forward and backward compatibility are guaranteed
New minor versions (e.g. from 4.3.3 to 4.4.0) indicate added functionality. Only backward compatibility is guaranteed
New major versions (e.g. from 4.4.0 to 5.0.0) indicate major revisions. All bets are off in terms of compatibility
Only the package maintainer may create a new release. The release should be prepared in the develop
branch. The following steps are mandatory:
Update the package version number in the DESCRIPTION file.
Update the documentation. This includes the following steps. Note that the extras/PackageMaintenance.R
file should contain the code needed to perform most of these steps:
NEWS.md
file to reflect all the changes and bugfixes included in the new version.devtools::spellcheck()
pkgdown
.Make sure the package passes R check, both locally and on travis.
For those packages that go into CRAN, the following additional step must be taken:
devtools::check_win_devel()
and devtools::check_rhub()
.Once all these steps are completed and commited to the develop
branch, the package can be released by merging develop
into master
.
Pushing changes to the master
branch where the version number in the DESCRIPTION file is higher than the current one will trigger the automated release process. If the package passes R check, the following steps are automatically performed:
A new tag is created in the GitHub repo with the version number.
The package is pushed to the OHDSI drat
repo.
For those packages that go into CRAN, the package can be submitted to CRAN using devtools::release()
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.