mirror of
https://github.com/msberends/AMR.git
synced 2026-11-28 21:26:15 +01:00
127 lines
16 KiB
HTML
127 lines
16 KiB
HTML
<!DOCTYPE html>
|
|
<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><title>Release checklist • AMR (for R)</title><!-- favicons --><link rel="icon" type="image/png" sizes="96x96" href="favicon-96x96.png"><link rel="icon" type="”image/svg+xml”" href="favicon.svg"><link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png"><link rel="icon" sizes="any" href="favicon.ico"><link rel="manifest" href="site.webmanifest"><script src="deps/jquery-3.6.0/jquery-3.6.0.min.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><link href="deps/bootstrap-5.3.8/bootstrap.min.css" rel="stylesheet"><script src="deps/bootstrap-5.3.8/bootstrap.bundle.min.js"></script><link href="deps/Lato-0.5.0/font.css" rel="stylesheet"><link href="deps/Fira_Code-0.5.0/font.css" rel="stylesheet"><link href="deps/font-awesome-6.5.2/css/all.min.css" rel="stylesheet"><link href="deps/font-awesome-6.5.2/css/v4-shims.min.css" rel="stylesheet"><script src="deps/headroom-0.11.0/headroom.min.js"></script><script src="deps/headroom-0.11.0/jQuery.headroom.min.js"></script><script src="deps/bootstrap-toc-1.0.1/bootstrap-toc.min.js"></script><script src="deps/clipboard.js-2.0.11/clipboard.min.js"></script><script src="deps/search-1.0.0/autocomplete.jquery.min.js"></script><script src="deps/search-1.0.0/fuse.min.js"></script><script src="deps/search-1.0.0/mark.min.js"></script><!-- pkgdown --><script src="pkgdown.js"></script><link href="extra.css" rel="stylesheet"><script src="extra.js"></script><meta property="og:title" content="Release checklist"><meta property="og:image" content="https://amr-for-r.org/logo.svg"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.css" integrity="sha384-nB0miv6/jRmo5UMMR1wu3Gz6NLsoTkbqJghGIsx//Rlm+ZU03BU6SQNC66uf4l5+" crossorigin="anonymous"><script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.js" integrity="sha384-7zkQWkzuo3B5mTepMUcHkMB5jZaolc2xDwL6VFqjFALcbeS9Ggm/Yr2r3Dy4lfFg" crossorigin="anonymous"></script><script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/contrib/auto-render.min.js" integrity="sha384-43gviWU0YVjaDtb/GhzOouOXtZMP/7XUzwPTstBeZFe/+rCMvRwr4yROQP43s0Xk" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script></head><body>
|
|
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
|
|
|
|
|
|
<nav class="navbar navbar-expand-lg fixed-top bg-primary" data-bs-theme="dark" aria-label="Site navigation"><div class="container">
|
|
|
|
<a class="navbar-brand me-2" href="index.html">AMR (for R)</a>
|
|
|
|
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9031</small>
|
|
|
|
|
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
|
<span class="navbar-toggler-icon"></span>
|
|
</button>
|
|
|
|
<div id="navbar" class="collapse navbar-collapse ms-3">
|
|
<ul class="navbar-nav me-auto"><li class="nav-item dropdown">
|
|
<button class="nav-link dropdown-toggle" type="button" id="dropdown-how-to" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true"><span class="fa fa-question-circle"></span> How to</button>
|
|
<ul class="dropdown-menu" aria-labelledby="dropdown-how-to"><li><a class="dropdown-item" href="articles/AMR.html"><span class="fa fa-directions"></span> Conduct AMR Analysis</a></li>
|
|
<li><a class="dropdown-item" href="reference/antibiogram.html"><span class="fa fa-file-prescription"></span> Generate Antibiogram (Trad./Syndromic/WISCA)</a></li>
|
|
<li><a class="dropdown-item" href="articles/AMR_with_tidymodels.html"><span class="fa fa-square-root-variable"></span> Use AMR for Predictive Modelling (tidymodels)</a></li>
|
|
<li><a class="dropdown-item" href="articles/datasets.html"><span class="fa fa-database"></span> Download Data Sets for Own Use</a></li>
|
|
<li><a class="dropdown-item" href="reference/AMR-options.html"><span class="fa fa-gear"></span> Set User- Or Team-specific Package Settings</a></li>
|
|
<li><a class="dropdown-item" href="articles/PCA.html"><span class="fa fa-compress"></span> Conduct Principal Component Analysis for AMR</a></li>
|
|
<li><a class="dropdown-item" href="reference/mdro.html"><span class="fa fa-skull-crossbones"></span> Determine Multi-Drug Resistance (MDR)</a></li>
|
|
<li><a class="dropdown-item" href="articles/WHONET.html"><span class="fa fa-globe-americas"></span> Work with WHONET Data</a></li>
|
|
<li><a class="dropdown-item" href="articles/EUCAST.html"><span class="fa fa-exchange-alt"></span> Apply EUCAST Rules</a></li>
|
|
<li><a class="dropdown-item" href="reference/mo_property.html"><span class="fa fa-bug"></span> Get Taxonomy of a Microorganism</a></li>
|
|
<li><a class="dropdown-item" href="reference/ab_property.html"><span class="fa fa-capsules"></span> Get Properties of an Antibiotic Drug</a></li>
|
|
<li><a class="dropdown-item" href="reference/av_property.html"><span class="fa fa-capsules"></span> Get Properties of an Antiviral Drug</a></li>
|
|
</ul></li>
|
|
<li class="nav-item"><a class="nav-link" href="articles/chat.html"><span class="fa fa-wand-magic-sparkles"></span> AMR for R Assistant</a></li>
|
|
<li class="nav-item"><a class="nav-link" href="reference/index.html"><span class="fa fa-book-open"></span> Manual</a></li>
|
|
<li class="nav-item"><a class="nav-link" href="authors.html"><span class="fa fa-users"></span> Authors</a></li>
|
|
</ul><ul class="navbar-nav"><li class="nav-item"><form class="form-inline" role="search">
|
|
<input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="search.json"></form></li>
|
|
<li class="nav-item"><a class="nav-link" href="news/index.html"><span class="fa fa-newspaper"></span> Changelog</a></li>
|
|
<li class="nav-item"><a class="external-link nav-link" href="https://github.com/msberends/AMR"><span class="fa fa-github"></span> Source Code</a></li>
|
|
</ul></div>
|
|
|
|
|
|
</div>
|
|
</nav><div class="container template-title-body">
|
|
<div class="row">
|
|
<main id="main" class="col-md-9"><div class="page-header">
|
|
<img src="logo.svg" class="logo" alt=""><h1>Release checklist</h1>
|
|
<small class="dont-index">Source: <a href="https://github.com/msberends/AMR/blob/main/release.md" class="external-link"><code>release.md</code></a></small>
|
|
</div>
|
|
|
|
<div id="release-checklist" class="section level1">
|
|
|
|
<p>The steps of a regular CRAN release of the <code>AMR</code> package, as followed for v3.1.0 (October 2026). Replace <code>X.Y.Z</code> with the new version number. Copy this list into an issue or a note per release, or tick the boxes in a local copy.</p>
|
|
<div class="section level2">
|
|
<h2 id="id_1-preparation-on-the-development-version">1. Preparation (on the development version)<a class="anchor" aria-label="anchor" href="#id_1-preparation-on-the-development-version"></a></h2>
|
|
<ul class="task-list"><li><label><input type="checkbox">All intended issues and pull requests for this release are merged into <code>main</code></label></li>
|
|
<li><label><input type="checkbox">All GitHub Actions on <code>main</code> succeed, including <code>check-revdeps</code> (it runs on every push to <code>main</code> and can also be started manually from the Actions tab)</label></li>
|
|
<li><label><input type="checkbox">Reverse dependencies are checked against this version; if a package breaks, its maintainer is informed in advance through an issue in its repository (e.g., <a href="https://github.com/agerada/MIC/issues/15" class="external-link uri">https://github.com/agerada/MIC/issues/15</a> for v3.1.0)</label></li>
|
|
<li><label><input type="checkbox"><code>vignettes/welcome_to_AMR.Rmd</code> is reviewed, since it is the only vignette that goes to CRAN (all other vignettes are in <code>.Rbuildignore</code>): check the text, the links, and the outcome of its inline R code (number of species and drugs, guideline years, languages, taxonomy date)</label></li>
|
|
<li><label><input type="checkbox"><code>index.Rmd</code> (website home page) and <code>README.Rmd</code> are up to date with the new version</label></li>
|
|
<li><label><input type="checkbox"><code>inst/CITATION</code> is up to date</label></li>
|
|
</ul></div>
|
|
<div class="section level2">
|
|
<h2 id="id_2-version-and-documentation">2. Version and documentation<a class="anchor" aria-label="anchor" href="#id_2-version-and-documentation"></a></h2>
|
|
<ul class="task-list"><li><label><input type="checkbox"><code>DESCRIPTION</code>: <code>Version: X.Y.Z</code> and <code>Date:</code> set to the submission date</label></li>
|
|
<li><label><input type="checkbox"><code>NEWS.md</code>: line 1 replaced by <code># AMR X.Y.Z</code>, the line about the planned release removed, and the intro paragraph written in past tense, summarising the main changes (see <em>NEWS.md style</em> in <code>CLAUDE.md</code>)</label></li>
|
|
<li><label><input type="checkbox"><code>NEWS.md</code>: the <em>Breaking</em> section mentions every change that can alter results or break code, with how to get the old behaviour</label></li>
|
|
<li><label><input type="checkbox"><code>cran-comments.md</code> rewritten for this release: type of release, main changes, reverse dependency results (with links to the issues of affected packages), and the note on the installation size</label></li>
|
|
<li><label><input type="checkbox"><code>devtools::document()</code> is run, so that <code>man/</code>, <code>NAMESPACE</code> and <code>R/sysdata.rda</code> are current (the pre-commit hook does this on commits with the hooks active)</label></li>
|
|
</ul></div>
|
|
<div class="section level2">
|
|
<h2 id="id_3-checks">3. Checks<a class="anchor" aria-label="anchor" href="#id_3-checks"></a></h2>
|
|
<ul class="task-list"><li><label><input type="checkbox"><code>R CMD build</code> and <code>R CMD check --as-cran</code> on the tarball: no errors or warnings, and only the known note on the installation size</label></li>
|
|
<li><label><input type="checkbox"><code>devtools::check_win_devel()</code> (win-builder, R-devel); wait for the e-mail</label></li>
|
|
<li><label><input type="checkbox">Optionally R-hub (<code>rhub::rhub_check()</code>) for other platforms</label></li>
|
|
<li><label><input type="checkbox"><code>urlchecker::url_check()</code> reports no broken or redirected URLs</label></li>
|
|
</ul></div>
|
|
<div class="section level2">
|
|
<h2 id="id_4-submission">4. Submission<a class="anchor" aria-label="anchor" href="#id_4-submission"></a></h2>
|
|
<ul class="task-list"><li><label><input type="checkbox"><code>devtools::submit_cran()</code>; this also updates <code>CRAN-SUBMISSION</code> (version, date and SHA)</label></li>
|
|
<li><label><input type="checkbox">Confirm the submission through the link in the e-mail from CRAN</label></li>
|
|
<li><label><input type="checkbox">Wait for acceptance; answer any questions from the CRAN team and resubmit if needed (keep the version number unless CRAN asks otherwise)</label></li>
|
|
</ul></div>
|
|
<div class="section level2">
|
|
<h2 id="id_5-after-acceptance-by-cran">5. After acceptance by CRAN<a class="anchor" aria-label="anchor" href="#id_5-after-acceptance-by-cran"></a></h2>
|
|
<p>The pre-commit hook in <code>.github/prehooks/</code> sets the version to <code>X.Y.Z.9NNN</code> and rewrites line 1 of <code>NEWS.md</code> on every commit to <code>main</code>. The release commit must therefore skip the hooks.</p>
|
|
<ul class="task-list"><li><p><label><input type="checkbox"><code>git status</code>: only the intended files are changed, with no build leftovers (e.g., <code>AMR_X.Y.Z.tar.gz</code>, <code>AMR.Rcheck/</code>)</label></p></li>
|
|
<li><p><label><input type="checkbox">Commit the release without hooks, with only the version as message: <code>git add -u && git commit -n -m "vX.Y.Z"</code></label></p></li>
|
|
<li><p><label><input type="checkbox"><code>git push origin main</code> (this also rebuilds the website and publishes the Python package to PyPI)</label></p></li>
|
|
<li>
|
|
<p><label><input type="checkbox">Create the tag through a GitHub release, with the <code>NEWS.md</code> section of this version without its <code># AMR X.Y.Z</code> heading as release notes:</label></p>
|
|
<div class="sourceCode" id="cb1"><pre class="sourceCode bash"><code class="sourceCode bash"><span id="cb1-1"><a href="#cb1-1" tabindex="-1"></a><span class="fu">awk</span> <span class="st">'NR==1 {next} /^# AMR /{exit} 1'</span> NEWS.md <span class="op">></span> notes.md</span>
|
|
<span id="cb1-2"><a href="#cb1-2" tabindex="-1"></a><span class="ex">gh</span> release create vX.Y.Z <span class="at">--target</span> main <span class="at">--title</span> <span class="st">"AMR vX.Y.Z"</span> <span class="at">--notes-file</span> notes.md <span class="at">--latest</span></span>
|
|
<span id="cb1-3"><a href="#cb1-3" tabindex="-1"></a><span class="fu">rm</span> notes.md</span></code></pre></div>
|
|
</li>
|
|
<li><p><label><input type="checkbox"><code>git fetch --tags</code> and check that <code>vX.Y.Z</code> points at the release commit</label></p></li>
|
|
<li><p><label><input type="checkbox">Check that the workflow <em>Publish release reference</em> (<code>.github/workflows/website-release.yaml</code>), which publishing the GitHub release starts, succeeded. It publishes the reference of this version as Markdown at <code>https://amr-for-r.org/release/X.Y.Z/</code> for the AMR for R Assistant (<a href="https://amr-for-r.org/articles/chat.html" class="uri">https://amr-for-r.org/articles/chat.html</a>), and adds the version to <code>https://amr-for-r.org/release/llms.txt</code>. To publish a version manually, start the workflow from the Actions tab with the tag as input, one version at a time: it shares the concurrency group <code>gh-pages</code> with the website workflow, and GitHub keeps only one waiting run per group, so a second waiting run cancels the first</label></p></li>
|
|
<li><p><label><input type="checkbox">Run <code>source("data-raw/microorganisms_files/build_mo_code_registry.R")</code> from the root of the repository (takes a few minutes; the tag must exist), then review the diff of <code>mo_code_registry.csv</code>: only new codes may be added, existing codes may only get a later <code>last_release</code>, and renamed codes must have their old name in <code>previous_names</code> (see <code>data-raw/microorganisms_files/README.md</code>)</label></p></li>
|
|
<li><p><label><input type="checkbox"><code>.github/ISSUE_TEMPLATE/1-bug-report.yml</code>: set the versions to <code>Latest CRAN version (X.Y.Z)</code> and <code>One of the latest GitHub versions (X.Y.Z.9xxx)</code></label></p></li>
|
|
<li><p><label><input type="checkbox"><code>NEWS.md</code>: put a new line 1 <code># AMR X.Y.Z.9001</code>, followed by an empty line, above <code># AMR X.Y.Z</code>; without this, the hook overwrites the heading of the released section</label></p></li>
|
|
<li><p><label><input type="checkbox">Commit with the hooks active (the version becomes <code>X.Y.Z.9001</code>) and push to <code>main</code></label></p></li>
|
|
<li><p><label><input type="checkbox">Check that the GitHub Actions succeed, the website (<a href="https://amr-for-r.org" class="uri">https://amr-for-r.org</a>) shows the new version, and the package is available on PyPI</label></p></li>
|
|
<li><p><label><input type="checkbox">Check the CRAN page (<a href="https://cran.r-project.org/package=AMR" class="external-link uri">https://cran.r-project.org/package=AMR</a>) and the CRAN check results some days later</label></p></li>
|
|
</ul></div>
|
|
</div>
|
|
|
|
</main><aside class="col-md-3"><nav id="toc" aria-label="Table of contents"><h2>On this page</h2>
|
|
</nav></aside></div>
|
|
|
|
|
|
<footer><div class="pkgdown-footer-left">
|
|
<p><code>AMR</code> (for R). Free and open-source, licenced under the <a target="_blank" href="https://github.com/msberends/AMR/blob/main/LICENSE" class="external-link">GNU GPL 2.0</a>. Developed at the <a target="_blank" href="https://www.rug.nl" class="external-link">University of Groningen</a> and <a target="_blank" href="https://www.umcg.nl" class="external-link">University Medical Center Groningen</a> in the Netherlands, in collaboration with <a href="https://amr-for-r.org/authors.html">many colleagues from around the world</a>.</p>
|
|
</div>
|
|
|
|
<div class="pkgdown-footer-right">
|
|
<p><a target="_blank" href="https://www.rug.nl" class="external-link"><img src="https://amr-for-r.org/logo_rug.svg" style="max-width: 150px;"></a><a target="_blank" href="https://www.umcg.nl" class="external-link"><img src="https://amr-for-r.org/logo_umcg.svg" style="max-width: 150px;"></a></p>
|
|
</div>
|
|
|
|
</footer></div>
|
|
|
|
|
|
|
|
|
|
|
|
</body></html>
|
|
|