Bump package version and update qrtdown config

Source: R/usethis.R

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.

Usage

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

Arguments

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

Examples

# 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")