EVOLUTION-MANAGER
Edit File: use_version.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Increment package version</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for use_version {usethis}"><tr><td>use_version {usethis}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Increment package version</h2> <h3>Description</h3> <p>usethis supports semantic versioning, which is described in more detail in the <a href="https://r-pkgs.org/description.html#description-version">version section</a> of <a href="https://r-pkgs.org">R Packages</a>. A version number breaks down like so: </p> <div class="sourceCode"><pre><major>.<minor>.<patch> (released version) <major>.<minor>.<patch>.<dev> (dev version) </pre></div> <p><code>use_version()</code> increments the "Version" field in <code>DESCRIPTION</code>, adds a new heading to <code>NEWS.md</code> (if it exists), and commits those changes (if package uses Git). It makes the same update to a line like <code>PKG_version = "x.y.z";</code> in <code>src/version.c</code> (if it exists). </p> <p><code>use_dev_version()</code> increments to a development version, e.g. from 1.0.0 to 1.0.0.9000. If the existing version is already a development version with four components, it does nothing. Thin wrapper around <code>use_version()</code>. </p> <h3>Usage</h3> <pre> use_version(which = NULL) use_dev_version() </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>which</code></td> <td> <p>A string specifying which level to increment, one of: "major", "minor", "patch", "dev". If <code>NULL</code>, user can choose interactively.</p> </td></tr> </table> <h3>See Also</h3> <p>The <a href="https://r-pkgs.org/description.html#description-version">version section</a> of <a href="https://r-pkgs.org">R Packages</a>. </p> <h3>Examples</h3> <pre> ## Not run: ## for interactive selection, do this: use_version() ## request a specific type of increment use_version("minor") use_dev_version() ## End(Not run) </pre> <hr /><div style="text-align: center;">[Package <em>usethis</em> version 2.1.6 <a href="00Index.html">Index</a>]</div> </body></html>