use_qrtdown_version

< Back to Reference | View source

use_qrtdown_version()

Bump package version and update qrtdown config

Usage

use_qrtdown_version(which = "minor", pkg = ".")

Arguments

Argument Description
which A string specifying which level to increment: “major”, “minor”, “patch”, or “dev”. Defaults to “minor”. See usethis::use_version() for details.
pkg Path to the package root directory

Value

Invisibly returns the new version string

Description

Bumps the package version in DESCRIPTION and regenerates _quarto.yml with the new version. This ensures the documentation site always shows the correct version in the navbar and footer.

This wraps usethis::use_version() and automatically updates qrtdown configuration files afterward.

Examples

## Not run: 
# Bump patch version (1.0.0 -> 1.0.1)
use_qrtdown_version("patch")

# Bump minor version (1.0.1 -> 1.1.0)
use_qrtdown_version("minor")

# Bump major version (1.1.0 -> 2.0.0)
use_qrtdown_version("major")

## End(Not run)