View source: R/increase_NVIpkg_version.R
increase_NVIpkg_version | R Documentation |
Increase the package version in the DESCRIPTION
and NEWS
files. As a default, the help and the reference
manual will be styled and updated.
increase_NVIpkg_version(
pkg = stringi::stri_extract_last_words(usethis::proj_path()),
pkg_path = usethis::proj_path(),
type = "develop",
document = FALSE,
...
)
pkg |
[ |
pkg_path |
[ |
type |
[ |
document |
[ |
... |
Other arguments to be passed to |
When publishing a new release, use type
one of
c("major", "minor", "fix"), depending of which release type
it is.
When type = "first"
, the NEWS
will be created with
the template for the first release. If
create_NVIpkg_skeleton
has been used to create the package, the DESCRIPTION
and NEWS
files should already have been created with
correct version number and NEWS
template.
When type = "develop"
, the NEWS
will be created
with the template for the next release if the previous version
was a release. If not, it increased the development version.
None. Modifies NEWS
and DESCRIPTION
and eventually
updates help.
Petter Hopp Petter.Hopp@vetinst.no
## Not run:
# Modifies \code{NEWS} and \code{DESCRIPTION} with new version number.
# You need to be in a package directory at you PC for the code to work.
pkg <- stringi::stri_extract_last_words(usethis::proj_path())
pkg_path = usethis::proj_path()
NVIpackager::increase_NVIpkg_version(pkg = pkg,
pkg_path = pkg_path,
type = "develop")
# If you publish a new release, you want to ensure that documentation is up to date.
NVIpackager::increase_NVIpkg_version(pkg = pkg,
pkg_path = pkg_path,
type = "minor",
document = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.