<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//TaxonX//DTD Taxonomic Treatment Publishing DTD v0 20100105//EN" "https://riojournal.com/nlm/tax-treatment-NS0.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tp="http://www.plazi.org/taxpub" article-type="research-article">
  <front>
    <journal-meta>
      <journal-id journal-id-type="publisher-id">17</journal-id>
      <journal-id journal-id-type="index">urn:lsid:arphahub.com:pub:8E638694-B4E0-570A-856A-746FF325BF6B</journal-id>
      <journal-id journal-id-type="aggregator">urn:lsid:zoobank.org:pub:FEF66878-15EE-4F8B-B369-7652D735020E</journal-id>
      <journal-title-group>
        <journal-title xml:lang="en">Research Ideas and Outcomes</journal-title>
        <abbrev-journal-title xml:lang="en">RIO</abbrev-journal-title>
      </journal-title-group>
      <issn pub-type="epub">2367-7163</issn>
      <publisher>
        <publisher-name>Pensoft Publishers</publisher-name>
      </publisher>
    </journal-meta>
    <article-meta>
      <article-id pub-id-type="doi">10.3897/rio.12.e216899</article-id>
      <article-id pub-id-type="publisher-id">216899</article-id>
      <article-id pub-id-type="manuscript">28494</article-id>
      <article-categories>
        <subj-group subj-group-type="heading">
          <subject>Guidelines </subject>
        </subj-group>
        <subj-group subj-group-type="scientific_subject">
          <subject>Computer applications</subject>
          <subject>Scientific computing and simulations</subject>
        </subj-group>
      </article-categories>
      <title-group>
        <article-title>B-Cubed software development guide</article-title>
      </title-group>
      <contrib-group content-type="authors">
        <contrib contrib-type="author" corresp="yes">
          <name name-style="western">
            <surname>Huybrechts</surname>
            <given-names>Pieter</given-names>
          </name>
          <email xlink:type="simple">pieter.huybrechts@inbo.be</email>
          <uri content-type="orcid">https://orcid.org/0000-0002-6658-6062</uri>
          <xref ref-type="aff" rid="A1">1</xref>
        </contrib>
        <contrib contrib-type="author" corresp="no">
          <name name-style="western">
            <surname>Langeraert</surname>
            <given-names>Ward</given-names>
          </name>
          <uri content-type="orcid">https://orcid.org/0000-0002-5900-8109</uri>
          <xref ref-type="aff" rid="A1">1</xref>
        </contrib>
        <contrib contrib-type="author" corresp="no">
          <name name-style="western">
            <surname>Desmet</surname>
            <given-names>Peter</given-names>
          </name>
          <uri content-type="orcid">https://orcid.org/0000-0002-8442-8025</uri>
          <xref ref-type="aff" rid="A1">1</xref>
        </contrib>
      </contrib-group>
      <aff id="A1">
        <label>1</label>
        <addr-line content-type="verbatim">Research Institute for Nature and Forest (INBO), Brussels, Belgium</addr-line>
        <institution>Research Institute for Nature and Forest (INBO)</institution>
        <addr-line content-type="city">Brussels</addr-line>
        <country>Belgium</country>
      </aff>
      <author-notes>
        <fn fn-type="corresp">
          <p>Corresponding author: Pieter Huybrechts (<email xlink:type="simple">pieter.huybrechts@inbo.be</email>).</p>
        </fn>
        <fn fn-type="edited-by">
          <p>Academic editor: </p>
        </fn>
      </author-notes>
      <pub-date pub-type="collection">
        <year>2026</year>
      </pub-date>
      <pub-date pub-type="epub">
        <day>19</day>
        <month>10</month>
        <year>2026</year>
      </pub-date>
      <volume>12</volume>
      <elocation-id>e216899</elocation-id>
      <uri content-type="arpha" xlink:href="http://openbiodiv.net/F9F6C5EC-52AC-5659-A48B-D79C5AF60668">F9F6C5EC-52AC-5659-A48B-D79C5AF60668</uri>
      <uri content-type="zenodo_dep_id" xlink:href="https://zenodo.org/record/23527965">23527965</uri>
      <permissions>
        <copyright-statement>Pieter Huybrechts, Ward Langeraert, Peter Desmet</copyright-statement>
        <license license-type="creative-commons-attribution" xlink:href="http://creativecommons.org/licenses/by/4.0/" xlink:type="simple">
          <license-p>This is an open access article distributed under the terms of the Creative Commons Attribution License (CC BY 4.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.</license-p>
        </license>
      </permissions>
      <abstract>
        <label>Abstract</label>
        <p>This guide specifies high-level requirements for software, computational tools and resources developed for B-Cubed (referred to in the sections as “software”) to ensure that the produced software meets the intended quality, openness, portability and reusability.</p>
      </abstract>
      <kwd-group>
        <label>Keywords</label>
        <kwd>data cubes</kwd>
        <kwd>FAIR software</kwd>
        <kwd>software quality standards</kwd>
        <kwd>open software</kwd>
        <kwd>software metadata</kwd>
        <kwd>interoperability</kwd>
        <kwd>b-cubed</kwd>
        <kwd>software versioning</kwd>
        <kwd>software testing</kwd>
      </kwd-group>
      <funding-group>
        <award-group>
          <funding-source>
            <named-content content-type="project_title">Biodiversity Building Blocks for policy</named-content>
            <named-content content-type="project_identifier">101059592</named-content>
            <named-content content-type="project_funder_id">501100000780</named-content>
            <named-content content-type="project_funder_name">European Commission</named-content>
            <named-content content-type="project_funder_doi">http://doi.org/10.13039/501100000780</named-content>
          </funding-source>
        </award-group>
      </funding-group>
      <counts>
        <fig-count count="1"/>
        <table-count count="1"/>
        <ref-count count="91"/>
      </counts>
    </article-meta>
    <notes>
      <sec sec-type="Funding program">
        <title>Funding program</title>
        <p>This work was supported by the B3 (Biodiversity Building Blocks for policy) project, which has received funding from the European Union's Horizon Europe Research and Innovation Programme under Grant Agreement No. 101059592.Views and opinions expressed are however those of the author(s) only and do not necessarily reflect those of the European Union or the European Research Executive Agency. Neither the European Union nor the granting authority can be held responsible for them.</p>
      </sec>
    </notes>
  </front>
  <body>
    <sec sec-type="Introduction">
      <title>Introduction</title>
      <p>These requirements*<xref ref-type="fn" rid="FN14442050">1</xref> were carefully selected from numerous existing best practices and guidelines, and aim to promote a consistent <bold>open source development</bold> cycle that allows collaboration and reuse within and outside of the consortium. Emphasis is placed on standardized metadata (files) that make it easier for both humans and search engines to find the software, and thus to increase its discoverability and reuse. In this same vein, emphasis is placed on the <bold>portability</bold> of the produced software to make sure it is functional on different platforms now and in the future with minimal modifications. Following existing paradigms and design patterns makes the behaviour of the software more predictable and makes results easier to replicate. By following the recommendations in this document, interoperability between software packages can be achieved.</p>
      <p>The sections include requirements, as well as hands-on instructions and examples. They cover topics such as <ext-link ext-link-type="uri" xlink:href="#code_repositories">code repositories</ext-link> and <ext-link ext-link-type="uri" xlink:href="#code_collaboration">collaboration</ext-link>, and in-depth development best practices, including testing and documentation, for both the <ext-link ext-link-type="uri" xlink:href="#r">R</ext-link> programming language. At the head of every section an overview is offered ²that summarizes the minimal requirements (MUST). The text of the section can include additional recommendations (SHOULD or RECOMMENDED).</p>
      <p>The key words MUST, MUST NOT, REQUIRED, SHALL, SHALL NOT, SHOULD, SHOULD NOT, RECOMMENDED, MAY, and OPTIONAL in this document are to be interpreted as described in <ext-link ext-link-type="uri" xlink:href="https://www.ietf.org/rfc/rfc2119.txt">RFC 2119</ext-link> (<xref ref-type="bibr" rid="B14458065">Bradner 1997</xref>).</p>
    </sec>
    <sec sec-type="Code repositories">
      <title>Code repositories</title>
      <p>All software code MUST be maintained on GitHub or GitLab. Code is maintained in a <bold>repository</bold>, which contains all files, discussions and version history related to a single software package or analysis.</p>
      <sec sec-type="B-Cubed software requirements">
        <title>B-Cubed software requirements</title>
        <p><list list-type="bullet">
          <list-item>
            <p>All software codes MUST be maintained on GitHub.</p>
          </list-item>
          <list-item>
            <p>An installable software tool MUST be maintained in its own repository.</p>
          </list-item>
          <list-item>
            <p>A repository MUST be public and be part of a GitHub organization (e.g. <italic>b-cubed-eu</italic>).</p>
          </list-item>
          <list-item>
            <p>A repository MUST contain a <monospace>.gitignore</monospace> file.</p>
          </list-item>
          <list-item>
            <p>A repository MUST contain a <monospace>LICENSE</monospace> file and be licenced under the MIT licence.</p>
          </list-item>
          <list-item>
            <p>A repository MUST contain a <monospace>README.md</monospace> file.</p>
          </list-item>
          <list-item>
            <p>A repository MUST contain a <monospace>CITATION.cff</monospace> file.</p>
          </list-item>
        </list></p>
      </sec>
      <sec sec-type="Create a repository">
        <title>Create a repository</title>
        <p>You first need to define the scope of your repository. An installable software tool (R package, Python library, etc.) MUST be maintained in its own repository. For an analysis, choose a scope that is easy to manage and collaborate on.</p>
        <p>It is RECOMMENDED that you start your repository before you write code. That way, you can follow best practices, others can contribute and all version history is captured from the start.</p>
        <p>The easiest way to create a repository is in your browser:</p>
        <p><list list-type="order">
          <list-item>
            <p>Login to GitHub (<ext-link ext-link-type="uri" xlink:href="https://github.com/">https://github.com</ext-link>).</p>
          </list-item>
          <list-item>
            <p>Go to <ext-link ext-link-type="uri" xlink:href="https://github.com/orgs/b-cubed-eu/repositories">https://github.com/orgs/b-cubed-eu/repositories</ext-link>. If you do not see a <italic>New repository</italic> button (green), then you are not yet invited to the B-Cubed organization on GitHub. Email your GitHub username to <ext-link ext-link-type="uri" xlink:href="mailto:laura.abraham@plantentuinmeise.be">GitHub B-Cubed admin</ext-link> and wait with the following steps until you are invited.</p>
          </list-item>
          <list-item>
            <p>Follow the <ext-link ext-link-type="uri" xlink:href="https://docs.github.com/en/repositories/creating-and-managing-repositories/quickstart-for-repositories">Quickstart for repositories</ext-link> instructions and create a new repository at <ext-link ext-link-type="uri" xlink:href="https://github.com/organizations/b-cubed-eu/repositories/new">https://github.com/organizations/b-cubed-eu/repositories/new</ext-link>:<list list-type="order"><list-item><p>Choose <italic>b-cubed-eu</italic> as owner. If that option is not available, see step 2.</p></list-item><list-item><p>The repository name SHOULD be lowercase, dash-separated and short.</p></list-item><list-item><p>The description SHOULD be a descriptive, one-sentence title (without period at the end), such as <italic>R package to read and write Frictionless Data Packages</italic>.</p></list-item><list-item><p>The visibility MUST be set to <italic>public</italic>. This makes it easier to collaborate and reference files and code.</p></list-item><list-item><p>Check <italic>Add a README file</italic>.</p></list-item><list-item><p>You MUST select a <monospace>.gitignore</monospace> template (e.g. R, Python)</p></list-item><list-item><p>You MUST select a licence and you MUST set it to <italic>MIT License</italic>. This conforms to the <ext-link ext-link-type="uri" xlink:href="https://b-cubed.eu/storage/app/uploads/public/64e/f45/6cd/64ef456cd4da1356663578.pdf">B-Cubed Data Management Plan</ext-link>.</p></list-item></list></p>
          </list-item>
        </list></p>
        <p>If you already have your code (locally), follow <ext-link ext-link-type="uri" xlink:href="https://docs.github.com/en/migrations/importing-source-code/using-the-command-line-to-import-source-code/adding-locally-hosted-code-to-github#initializing-a-git-repository">About adding existing source code to GitHub</ext-link>. Using GitHub Desktop is the easiest option.</p>
        <p>If your code is already on GitHub under a personal account, it MUST be transferred to the <italic>b-cubed-eu</italic> organization or your institution, if it has a well-established track record of maintaining code on GitHub. Contact the <ext-link ext-link-type="uri" xlink:href="mailto:laura.abraham@plantentuinmeise.be">GitHub B-Cubed admin</ext-link> to gain the rights to transfer your repository to the <italic>b-cubed-eu</italic> organization.</p>
        <p>Once you have created a repository, you SHOULD complete a number of additional steps.</p>
      </sec>
      <sec sec-type="Set the copyright holder">
        <title>Set the copyright holder</title>
        <p><list list-type="order">
          <list-item>
            <p>Go to the <monospace>LICENSE</monospace> file.</p>
          </list-item>
          <list-item>
            <p>Click the pencil icon.</p>
          </list-item>
          <list-item>
            <p>Select <italic>Choose a license template</italic>.</p>
          </list-item>
          <list-item>
            <p>Choose <italic>MIT License</italic>.</p>
          </list-item>
          <list-item>
            <p>Select the <italic>year</italic> the software was started.</p>
          </list-item>
          <list-item>
            <p>Set Full name to the institution where the maintainer of the software is employed (e.g. <italic>Research Institute for Nature and Forest (INBO)</italic>). When in doubt, leave as <italic>B-Cubed</italic>.</p>
          </list-item>
          <list-item>
            <p>Commit the changes.</p>
          </list-item>
        </list></p>
      </sec>
      <sec sec-type="Ignore Mac .DS_Store files">
        <title>Ignore Mac .DS_Store files</title>
        <p>Mac operating systems create <ext-link ext-link-type="uri" xlink:href="https://en.wikipedia.org/wiki/.DS_Store">.DS_Store</ext-link> files to store attributes of a directory. These can clutter your repository and should be ignored.</p>
        <p><list list-type="order">
          <list-item>
            <p>Go to the <monospace>.gitignore</monospace> file.</p>
          </list-item>
          <list-item>
            <p>Click the pencil icon.</p>
          </list-item>
          <list-item>
            <p>Scroll to the bottom and add the following code (before the empty line): <monospace># Mac OS</monospace> <monospace>.DS_Store</monospace></p>
          </list-item>
          <list-item>
            <p>Commit the changes.</p>
          </list-item>
        </list></p>
      </sec>
      <sec sec-type="Add a CITATION.cff file">
        <title>Add a CITATION.cff file</title>
        <p>Repositories MUST contain a CITATION.cff file so users know how to cite the software. Its metadata also gets picked up when depositing a repository to Zenodo (see <ext-link ext-link-type="uri" xlink:href="#github_releases">releases</ext-link>. For more information see <ext-link ext-link-type="uri" xlink:href="https://citation-file-format.github.io/#/what-is-a-citation-cff-file">What is a CITATION.cff file</ext-link> or GitHub’s <ext-link ext-link-type="uri" xlink:href="https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-citation-files">About CITATION files</ext-link>.</p>
        <p><list list-type="order">
          <list-item>
            <p>Go to the main page of your repository.</p>
          </list-item>
          <list-item>
            <p>Click <italic>Add file</italic> then <italic>Create new file</italic>.</p>
          </list-item>
          <list-item>
            <p>Name your file <monospace>CITATION.cff</monospace>.</p>
          </list-item>
          <list-item>
            <p>An info box will appear, select <italic>Insert example</italic>.</p>
          </list-item>
          <list-item>
            <p>Include the name and ORCID of the maintainers.</p>
          </list-item>
          <list-item>
            <p>Remove the lines <italic>doi</italic> and <italic>date-released</italic>.</p>
          </list-item>
          <list-item>
            <p>Commit the changes.</p>
          </list-item>
        </list></p>
        <p>Note: this file can be updated later (manually or through functions).</p>
        <p>Note: a <monospace>CITATION.cff</monospace> is different from the R-specific <monospace>CITATION</monospace> file (<ext-link ext-link-type="uri" xlink:href="#citation">without an extension</ext-link>).</p>
      </sec>
      <sec sec-type="Add topics">
        <title>Add topics</title>
        <p><list list-type="order">
          <list-item>
            <p>Follow the <ext-link ext-link-type="uri" xlink:href="https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/classifying-your-repository-with-topics">Classify with topics</ext-link>.</p>
          </list-item>
          <list-item>
            <p>Add a number of topics, including the language (<italic>r</italic> and <italic>rstats</italic> or <italic>python</italic>), the type of software (e.g. <italic>r-package</italic>, <italic>analysis</italic>) and related subjects (e.g. <italic>invasive-species</italic>), cf. the section on <ext-link ext-link-type="uri" xlink:href="https://devguide.ropensci.org/grooming.html#github-repo-topics">GitHub repo topics</ext-link> in the rOpenSci Packages guide (<xref ref-type="bibr" rid="B13411659">rOpenSci et al. 2024</xref>).</p>
          </list-item>
        </list></p>
      </sec>
      <sec sec-type="Hide irrelevant tabs">
        <title>Hide irrelevant tabs</title>
        <p><list list-type="order">
          <list-item>
            <p>Go to the <italic>Settings</italic> tab.</p>
          </list-item>
          <list-item>
            <p>In <italic>Features</italic>, turn off <italic>Wikis</italic> and <italic>Projects</italic>. These features will likely not be used.</p>
          </list-item>
        </list></p>
      </sec>
      <sec sec-type="Invite collaborators">
        <title>Invite collaborators</title>
        <p><list list-type="order">
          <list-item>
            <p>Contact the <ext-link ext-link-type="uri" xlink:href="mailto:laura.abraham@plantentuinmeise.be">GitHub B-Cubed admin</ext-link> to indicate who you want to invite. The admin can then organize the collaborators in teams.</p>
          </list-item>
          <list-item>
            <p>Follow the <ext-link ext-link-type="uri" xlink:href="https://docs.github.com/en/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-access-to-your-personal-repositories/inviting-collaborators-to-a-personal-repository">Invite collaborators</ext-link> instructions (these are for personal repositories, but many of the steps apply to organization repositories).</p>
          </list-item>
          <list-item>
            <p>Type the GitHub name of the collaborator you want to add.</p>
          </list-item>
          <list-item>
            <p>Indicate the rights (<italic>Read</italic>, <italic>Triage</italic>, <italic>Write</italic>, <italic>Maintain</italic>, or <italic>Admin</italic>).</p>
          </list-item>
          <list-item>
            <p>The collaborator will receive an email invitation to collaborate.</p>
          </list-item>
        </list></p>
      </sec>
      <sec sec-type="Extend your README.md file">
        <title>Extend your README.md file</title>
        <p>See the <ext-link ext-link-type="uri" xlink:href="#the_readme_file">README file</ext-link> sections.</p>
      </sec>
      <sec sec-type="Setup your local environment, contribute code and collaborate">
        <title>Setup your local environment, contribute code and collaborate</title>
        <p>See the <ext-link ext-link-type="uri" xlink:href="#code_collaboration">Code collaboration</ext-link> section.</p>
      </sec>
    </sec>
    <sec sec-type="The README file">
      <title>The README file</title>
      <p>A README file communicates the most important information about your repository/software. It will serve as a welcome sign for users, meaning that it will be the first and maybe most important piece of metadata that users will encounter. It often also serves as the landing page for a <ext-link ext-link-type="uri" xlink:href="#documentation_website">documentation website</ext-link>.</p>
      <p>Maintainers SHOULD extend a README beyond its initial template when it was created as soon as possible, as it helps to define scope and expectations and facilitates <ext-link ext-link-type="uri" xlink:href="#code_collaboration">collaboration</ext-link>. General guidance on writing a README can be found in GitHub’s <ext-link ext-link-type="uri" xlink:href="https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-readmes">About READMEs</ext-link> or <ext-link ext-link-type="uri" xlink:href="https://www.makeareadme.com/">Make a README</ext-link>, while software languages (e.g. <ext-link ext-link-type="uri" xlink:href="https://docs.python-guide.org/writing/documentation/">Python</ext-link> or <ext-link ext-link-type="uri" xlink:href="https://devguide.ropensci.org/building.html#readme">R</ext-link>) often have specific instructions. Some suggestions for its contents are detailed in the sections below. See the <ext-link ext-link-type="uri" xlink:href="https://github.com/frictionlessdata/frictionless-r/#readme">README.md</ext-link> of the <ext-link ext-link-type="uri" xlink:href="https://docs.ropensci.org/frictionless/">frictionless</ext-link> package (<xref ref-type="bibr" rid="B13411848">Desmet et al. 2025</xref>) as an example.</p>
      <sec sec-type="B-Cubed software requirements">
        <title>B-Cubed software requirements</title>
        <p><list list-type="bullet">
          <list-item>
            <p>The README file MUST be written in Markdown, unless the software language recommends otherwise.</p>
          </list-item>
          <list-item>
            <p>The README file MUST start with a title.</p>
          </list-item>
          <list-item>
            <p>The README file MUST include a brief introduction to the repository/software.</p>
          </list-item>
        </list></p>
      </sec>
      <sec sec-type="Format">
        <title>Format</title>
        <p>The README file MUST be written in Markdown (and therefore be named README.md), unless the software language recommends otherwise. Python for example <ext-link ext-link-type="uri" xlink:href="https://docs.python-guide.org/writing/documentation/#restructuredtext-ref">recommends structured text</ext-link> (<xref ref-type="bibr" rid="B13411910">Reitz and Schlusser 2016</xref>). See the GitHub’s <ext-link ext-link-type="uri" xlink:href="https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax">Basic formatting syntax</ext-link> guide for more information on how to write Markdown.</p>
      </sec>
      <sec sec-type="Title">
        <title>Title</title>
        <p>A README MUST start with an H1 title with the (human-readable) name of the repository/software. The title is generally the same as the name of the package, see <ext-link ext-link-type="uri" xlink:href="#naming_your_package">Naming your package</ext-link>.</p>
      </sec>
      <sec sec-type="Badges">
        <title>Badges</title>
        <p>Right below the title you can optionally show badges or shields to convey the current development status, link to a publication or archive, test coverage and more. Many GitHub workflows come with a <ext-link ext-link-type="uri" xlink:href="https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows/adding-a-workflow-status-badge">status badge</ext-link> and static shields can easily be created using <ext-link ext-link-type="uri" xlink:href="https://shields.io/badges">https://shields.io/badges</ext-link>. Vincent A. Cicirello provides a general overview in <ext-link ext-link-type="uri" xlink:href="https://dev.to/cicirello/badges-tldr-for-your-repositorys-readme-3oo3">this blog post</ext-link> (<xref ref-type="bibr" rid="B13411918">Cicirello 2022</xref>).</p>
        <p>Maintainers SHOULD at least include a repo status or lifecycle badge, to indicate the maturity/support for the repository/software. See <ext-link ext-link-type="uri" xlink:href="https://www.repostatus.org/">repostatus.org</ext-link> for statuses or <ext-link ext-link-type="uri" xlink:href="https://lifecycle.r-lib.org/articles/stages.html">lifecycle</ext-link><xref ref-type="bibr" rid="B13411790">Henry and Wickham 2023</xref>) and how to add it as a badge.</p>
      </sec>
      <sec sec-type="Description">
        <title>Description</title>
        <p>Below the Title and the optional badges, a brief, title-less introduction MUST be provided, explaining the rationale and/or scope of the repository/software. A software package might initially limit its scope to only part of a bigger problem, and signal this in its description. For example, a package wrapping an API might only support reading from that API, not writing to it. Or an analysis library might only initially offer statistical functionality, but not any visualization of results.</p>
      </sec>
      <sec sec-type="Installation instructions">
        <title>Installation instructions</title>
        <p>While it can be very clear how to install a software package for those who were closely involved in writing them, the same is not always true for external users. Thus minimal instructions SHOULD be included in the README on how to install the software and its dependencies.</p>
      </sec>
      <sec sec-type="Examples or usage instructions">
        <title>Examples or usage instructions</title>
        <p>Similar to the installation instructions at least one example of the functionality of the analysis workflow or software SHOULD be included in the README.</p>
      </sec>
      <sec sec-type="README files for data">
        <title>README files for data</title>
        <p>A repository can have additional README files beyond the one in the root. These typically serve as an introduction to a specific directory. These SHOULD NOT be used, as there are better ways to <ext-link ext-link-type="uri" xlink:href="#documenting_functions">document code</ext-link>, but it can serve as a quick way to describe data files. See <ext-link ext-link-type="uri" xlink:href="https://data.research.cornell.edu/data-management/sharing/readme/">this guide</ext-link> by Cornell University Data Services or Dryad’s <ext-link ext-link-type="uri" xlink:href="https://datadryad.org/stash/best_practices#describe-your-dataset-in-a-readme-file">best practices document</ext-link> for guidance. Better yet is to deposit your data elsewhere.</p>
      </sec>
    </sec>
    <sec sec-type="Code collaboration">
      <title>Code collaboration</title>
      <p>Open source software relies on <bold>collaboration</bold>. Participants in this process are not only developers, but anyone interacting with the software (code), such as maintainers, contributors, testers, users reporting issues, etc. To facilitate the collaboration process, it is good to adopt a number of community standards and best practices (see below).</p>
      <p>For more information on open source software collaboration, see <ext-link ext-link-type="uri" xlink:href="https://docs.github.com/en/get-started/exploring-projects-on-github/finding-ways-to-contribute-to-open-source-on-github">Finding ways to contribute to open source on GitHub</ext-link> (also useful for non-developers) and GitHub’s <ext-link ext-link-type="uri" xlink:href="https://opensource.guide/">Open source guides</ext-link>. See how well your repository is adopting community standards at <italic><ext-link ext-link-type="uri" xlink:href="https://github.com/b-cubed-eu/&amp;lt;your-repo&amp;gt;/community">https://github.com/b-cubed-eu/&lt;your-repo&gt;/community</ext-link></italic>.</p>
      <sec sec-type="Add a Code of conduct">
        <title>Add a Code of conduct</title>
        <p>A <ext-link ext-link-type="uri" xlink:href="https://opensource.guide/code-of-conduct/">code of conduct</ext-link> is a document that establishes expectations for behaviour from all software participants. Adopting and enforcing it can help to create a safe and positive working space.</p>
        <p>All software MUST have a code of conduct, as a CODE_OF_CONDUCT.md file following the <ext-link ext-link-type="uri" xlink:href="https://www.contributor-covenant.org/">Contributor Covenant</ext-link> template. All participants to software MUST abide by its code of conduct.</p>
        <p>To add a CODE_OF_CONDUCT.md:</p>
        <p><list list-type="order">
          <list-item>
            <p>Follow the <ext-link ext-link-type="uri" xlink:href="https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-code-of-conduct-to-your-project">Add a code of conduct</ext-link> instructions.</p>
          </list-item>
          <list-item>
            <p>In step 5, choose the Contributor Covenant template.</p>
          </list-item>
          <list-item>
            <p>Add as Contact method: <ext-link ext-link-type="uri" xlink:href="mailto:b-cubedsupport@meisebotanicgarden.be">b-cubedsupport@meisebotanicgarden.be</ext-link> (this email is monitored by MeiseBG staff).</p>
          </list-item>
          <list-item>
            <p>Before committing the changes, change the file name to .github/CODE_OF_CONDUCT.md.</p>
          </list-item>
        </list></p>
        <p>Alternatively, you can complete these steps in R using: usethis::use_tidy_coc()</p>
        <p>But update the default email address (<ext-link ext-link-type="uri" xlink:href="mailto:codeofconduct@posit.co">codeofconduct@posit.co</ext-link>) in “Enforcement” to <ext-link ext-link-type="uri" xlink:href="mailto:b-cubedsupport@meisebotanicgarden.be">b-cubedsupport@meisebotanicgarden.be</ext-link> before committing the file.</p>
      </sec>
      <sec sec-type="Enable notifications">
        <title>Enable notifications</title>
        <p><ext-link ext-link-type="uri" xlink:href="https://docs.github.com/en/account-and-profile/managing-subscriptions-and-notifications-on-github/setting-up-notifications/about-notifications#default-subscriptions">Notifications</ext-link> are (email) alerts of participant activity in a repository or issue thread you are subscribed to. They facilitate collaboration and relieve you from having to check into GitHub.com. Activities that can trigger a notification include issues, pull requests and releases. Commits do not trigger a notification, which is why the <ext-link ext-link-type="uri" xlink:href="#follow_the_github_flow">GitHub flow</ext-link> (i.e. pull requests) is recommended to inform collaborators of important changes. You also won’t receive notifications for your own actions.</p>
        <p>You are <ext-link ext-link-type="uri" xlink:href="https://docs.github.com/en/account-and-profile/managing-subscriptions-and-notifications-on-github/setting-up-notifications/about-notifications#default-subscriptions">automatically subscribed</ext-link> to notifications based on your actions (like commenting on an issue) or the actions of others (like <ext-link ext-link-type="uri" xlink:href="https://docs.github.com/en/get-started/quickstart/github-glossary#mention">@mentioning</ext-link> or assigning you). You don’t need to be an official contributor to be notified; anyone can do so by clicking the Watch button on a repository homepage. Maintainers MUST watch the repository they maintain. If you receive too many notifications, you can <ext-link ext-link-type="uri" xlink:href="https://docs.github.com/en/account-and-profile/managing-subscriptions-and-notifications-on-github/managing-subscriptions-for-activity-on-github/managing-your-subscriptions">control what events</ext-link> you want to be notified of.</p>
        <p>When receiving a notification by email, click the view it on GitHub link at the bottom to interact. This generally provides better context and formatting options than your email client (see <ext-link ext-link-type="uri" xlink:href="#report_issues">Report issues</ext-link>).</p>
      </sec>
      <sec sec-type="Follow the GitHub flow">
        <title>Follow the GitHub flow</title>
        <p>The GitHub flow is an easy-to-adopt practice for code collaboration that MUST be followed for all code contributions to B-Cubed software. It consists of making a <bold>branch</bold>, making changes, creating a <bold>pull request</bold>, addressing review comments, merging the pull request and deleting the branch. See <ext-link ext-link-type="uri" xlink:href="#follow_the_github_flow">GitHub flow</ext-link> for more information, including links to further documentation for all the steps.</p>
      </sec>
      <sec sec-type="Protect the main branch">
        <title>Protect the main branch</title>
        <p>The main branch MUST contain the software code in a state that can be installed without issue. To ensure code contributions (via pull requests) are reviewed before these are merged into the main branch, you can configure your repository to do so:</p>
        <p><list list-type="order">
          <list-item>
            <p>Follow the <ext-link ext-link-type="uri" xlink:href="https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/managing-a-branch-protection-rule">Branch protection rule</ext-link> instructions.</p>
          </list-item>
          <list-item>
            <p>For <italic>Branch name pattern</italic>, choose <italic>main</italic>.</p>
          </list-item>
          <list-item>
            <p><italic>Require a pull request before merging</italic> SHOULD be enabled, with the default <italic>Require approvals</italic>.</p>
          </list-item>
        </list></p>
        <p>See also <ext-link ext-link-type="uri" xlink:href="#follow_the_github_flow">GitHub flow</ext-link> for working with branches.</p>
      </sec>
      <sec sec-type="Contributing guide">
        <title>Contributing guide</title>
        <p>Maintainers SHOULD clarify how participants can contribute to their software, by adding a contributing guide as a <monospace>CONTRIBUTING.md</monospace> file in the <monospace>.github</monospace> directory.</p>
        <p>To add a <monospace>CONTRIBUTING.md</monospace> file:</p>
        <p><list list-type="order">
          <list-item>
            <p>Follow the <ext-link ext-link-type="uri" xlink:href="https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/setting-guidelines-for-repository-contributors">Contributor guidelines</ext-link> instructions.</p>
          </list-item>
          <list-item>
            <p>Copy/paste a template such as Peter Desmet’s <ext-link ext-link-type="uri" xlink:href="https://gist.github.com/peterdesmet/e90a1b0dc17af6c12daf6e8b2f044e7c">CONTRIBUTING.md</ext-link> or the <ext-link ext-link-type="uri" xlink:href="https://tidyverse.tidyverse.org/CONTRIBUTING.html">Contributing to tidyverse</ext-link>.</p>
          </list-item>
          <list-item>
            <p>Adapt where necessary.</p>
          </list-item>
          <list-item>
            <p>Make sure the instructions do not contradict the <ext-link ext-link-type="uri" xlink:href="#follow_the_github_flow">Github flow</ext-link>.</p>
          </list-item>
        </list></p>
        <p>Alternatively, you can complete these steps in R using: <monospace>usethis::use_tidy_contributing()</monospace></p>
        <p>Which will use the <ext-link ext-link-type="uri" xlink:href="https://tidyverse.tidyverse.org/CONTRIBUTING.html">Contributing to tidyverse</ext-link> template.</p>
      </sec>
      <sec sec-type="Report issues">
        <title>Report issues</title>
        <p>While the <ext-link ext-link-type="uri" xlink:href="https://docs.b-cubed.eu/guides/software-development/#collaboration-github-flow">GitHub flow</ext-link> lowers the barrier for making code contributions, it is useful (and saves you from writing unnecessary code) to interact with the maintainer(s) before suggesting changes. The easiest way to do so is by <ext-link ext-link-type="uri" xlink:href="https://docs.github.com/en/issues/tracking-your-work-with-issues/creating-an-issue">creating an issue</ext-link>.</p>
        <p>Issues can be used to report and discuss a bug, idea or task. Issues are typically not used to ask for support in using the software. Anyone can create an issue or comment on it, and all participants watching the repository will get a <ext-link ext-link-type="uri" xlink:href="https://docs.b-cubed.eu/guides/software-development/#collaboration-notifications">notification</ext-link>. Once an issue is resolved (by fixing the bug, implementing the feature, or deciding not to act upon it) it can be closed. Closed issues are still accessible and can act as a history of decisions.</p>
        <p>Writing a good issue takes skill, see <ext-link ext-link-type="uri" xlink:href="https://dev.to/opensauced/how-to-write-a-good-issue-tips-for-effective-communication-in-open-source-5443">this blog post</ext-link> (<xref ref-type="bibr" rid="B13411978">Weigel 2023</xref>) or the <ext-link ext-link-type="uri" xlink:href="https://code-review.tidyverse.org/issues/">tidyverse code review guide</ext-link> (<xref ref-type="bibr" rid="B13411970">Vaughan 2023</xref>) for guidance, and follow the <ext-link ext-link-type="uri" xlink:href="https://docs.b-cubed.eu/guides/software-development/#collaboration-guide">contributing guide</ext-link>.</p>
        <p>Just like the <ext-link ext-link-type="uri" xlink:href="https://docs.b-cubed.eu/guides/software-development/#repo-readme">README file</ext-link>, issues (and pull request) support <bold>Markdown</bold> formatting that can improve readability, link issues to code and other issues, and notify people. See the GitHub’s <ext-link ext-link-type="uri" xlink:href="https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax">Basic formatting syntax</ext-link> guide for more information.</p>
        <p>As a maintainer, you can nudge participants in the right direction by providing an issue template. Follow the <ext-link ext-link-type="uri" xlink:href="https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/configuring-issue-templates-for-your-repository">Configuring issue templates for your repository</ext-link> instructions to do so. Alternatively, you can complete these steps in R using: <monospace>usethis::use_tidy_issue_template()</monospace></p>
        <p>But update or remove the references to <ext-link ext-link-type="uri" xlink:href="https://stackoverflow.com">https://stackoverflow.com</ext-link> or <ext-link ext-link-type="uri" xlink:href="https://community.rstudio.com">https://community.rstudio.com</ext-link> before committing the file.</p>
      </sec>
      <sec sec-type="Local development">
        <title>Local development</title>
        <p>While some contributions can be made directly in the browser (one file at a time), most software development will be done locally, in an environment where it can be run and tested. Git (and the <ext-link ext-link-type="uri" xlink:href="#follow_the_github_flow">GitHub flow</ext-link>) allow these changes to be synchronized. Rather than explaining how to use git, we recommend the use of <ext-link ext-link-type="uri" xlink:href="https://desktop.github.com/">GitHub Desktop</ext-link> to facilitate this process.</p>
        <p>GitHub desktop is a visual interface that allows you to commit your changes (include file parts and multiple related files), push those to GitHub.com, pull changes from contributors, resolve merge conflicts, and switch branches. It works well next to other code editors such as R Studio. See the <ext-link ext-link-type="uri" xlink:href="https://docs.github.com/en/desktop/installing-and-authenticating-to-github-desktop/setting-up-github-desktop">GitHub Desktop</ext-link> instructions to get started.</p>
      </sec>
    </sec>
    <sec sec-type="Versioning">
      <title>Versioning</title>
      <p>Code versioning (or version control) is an essential aspect of software development. It provides a mechanism to keep a detailed history of the changes that are made to the source code, as well as the decisions leading to those changes. This allows for a deeper understanding of the code and facilitates code audits/reviews. Code versioning also serves as a backup and recovery mechanism of the code. In case of critical errors or functionality loss, it is possible to revert to a previous working release of the software. Finally, versioning is an important communication mechanism for users of the software, especially software using it as a dependency. It indicates what changes can potentially break or alter existing functionality, offering the users the option to adapt their code or use a previous version.</p>
      <sec sec-type="Semantic versioning">
        <title>Semantic versioning</title>
        <p>Software MUST use <ext-link ext-link-type="uri" xlink:href="https://semver.org/">semantic versioning</ext-link>, where the version number is of the form MAJOR.MINOR.PATCH. An example of version changes is presented in Table <xref ref-type="table" rid="T13410777">1</xref>.</p>
      </sec>
      <sec sec-type="Git commits">
        <title>Git commits</title>
        <p>Versioning is built into git, where changes are expressed as commits. Try to create logical commits, where related changes are bundled together (and leave unrelated changes for a following commit). Document your commit with a concise commit message in the active tense (<italic>Add Pieter as contributor</italic>, Use <italic>'invalid'</italic> over <italic>'incorrect'</italic>, etc.) and where necessary, document the reasoning in the commit description.</p>
      </sec>
      <sec sec-type="GitHub releases">
        <title>GitHub releases</title>
        <p>Major and minor versions MUST have an associated GitHub release:</p>
        <p><list list-type="order">
          <list-item>
            <p>Follow the <ext-link ext-link-type="uri" xlink:href="https://docs.github.com/en/repositories/releasing-projects-on-github/managing-releases-in-a-repository">Manage releases</ext-link> instructions.</p>
          </list-item>
          <list-item>
            <p>Use the semantic version number as the tag (e.g. <italic>0.1</italic>, <italic>1.1.1</italic>).</p>
          </list-item>
        </list></p>
        <p>Starting from release 1.0, authors MUST also publish their releases on Zenodo. Zenodo and GitHub are integrated, allowing this publication to be automated. See <ext-link ext-link-type="uri" xlink:href="https://inbo.github.io/tutorials/tutorials/git_zenodo/">this tutorial</ext-link> (<xref ref-type="bibr" rid="B13411986">Vanderhaeghe 2022</xref>) for details.</p>
        <p>By default, Zenodo will use the repository metadata to populate the deposit metadata. This will be of limited quality (e.g. GitHub usernames as author names). If a `<monospace>CITATION.cff</monospace>` file is present (see <ext-link ext-link-type="uri" xlink:href="#add_a_citationcff_file">Add a CITATION.cff file</ext-link>, Zenodo will use that to populate the metadata. This will be of much higher quality, but you will typically have to review and update some properties manually on Zenodo, such as adding funding information, updating author affiliation to ROR-linked entries, updating the notes to the changelog and adding the deposit to the <ext-link ext-link-type="uri" xlink:href="https://zenodo.org/communities/b3">B-Cubed</ext-link> community.</p>
        <p>See the <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.5281/zenodo.16910268">b3doc R package</ext-link> (<xref ref-type="bibr" rid="B14035559">Govaert et al. 2025</xref>) as an example of a well-documented Zenodo deposit.</p>
        <p>If you prefer to fully automate the setup, you can add a <monospace>.zenodo.json</monospace> file in the root of the repository. In this file you can define Zenodo-specific metadata that will be used when a release is created. Note that for B-Cubed software, you must include the `<italic>b3</italic>` community and the `<italic>101059592</italic>` grant ID, otherwise the GitHub–Zenodo integration will silently fail:</p>
        <p>
          <preformat preformat-type="code" xml:space="preserve">{ "communities": [ { "identifier": "b3" } ], "grants": [ { "id": "101059592" } ]}</preformat>
        </p>
        <p>Further details on integrating GitHub and Zenodo using a .zenodo.json file are available in <ext-link ext-link-type="uri" xlink:href="https://inbo.github.io/tutorials/tutorials/git_zenodo/">this tutorial</ext-link> (<xref ref-type="bibr" rid="B13411986">Vanderhaeghe 2022</xref>) and in the <ext-link ext-link-type="uri" xlink:href="https://developers.zenodo.org/">Zenodo developer documentation</ext-link>.</p>
        <p>Always verify the Zenodo record after the first release to ensure the integration behaves as expected.</p>
      </sec>
      <sec sec-type="Data products">
        <title>Data products</title>
        <p>The purpose of this section is to outline the requirements for software and scripts that are developed within the B-Cubed project. Data products are out-of-scope. However, many of the principles mentioned in this document can be applied to data products as well. For more details, we refer to the project deliverable D3.3 FAIR data products andinteroperability with the Essential Biodiversity Variables Data Portal (<xref ref-type="bibr" rid="B14442501">Estupinan-Suarez et al. 2025</xref>).</p>
      </sec>
      <sec sec-type="Changelog">
        <title>Changelog</title>
        <p>To communicate and explain version changes, each repository SHOULD have a changelog. This changelog SHOULD be expressed as a NEWS.md file for R code (see the <ext-link ext-link-type="uri" xlink:href="https://devguide.ropensci.org/releasing.html#news">rOpenSci recommendations</ext-link>, <xref ref-type="bibr" rid="B13411659">rOpenSci et al. 2024</xref>).</p>
        <p>In R you can create a <monospace>NEWS.md</monospace> file using: <monospace>usethis::use_news_md()</monospace></p>
      </sec>
    </sec>
    <sec sec-type="R">
      <title>R</title>
      <p>R is a programming language for statistical computing and data visualization.</p>
      <p><list list-type="bullet">
        <list-item>
          <p>General guidance on how to use and write R can be found in <xref ref-type="bibr" rid="B13410881">Adler 2012</xref> and <xref ref-type="bibr" rid="B13410873">Crawley 2012</xref>.</p>
        </list-item>
        <list-item>
          <p>For <ext-link ext-link-type="uri" xlink:href="https://docs.b-cubed.eu/guides/software-development/#r-pkg">R packages</ext-link>, we refer to the <ext-link ext-link-type="uri" xlink:href="https://devguide.ropensci.org/">rOpenSci Packages guide</ext-link> (<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.5281/zenodo.6619350">rOpenSci 2021</ext-link>).</p>
        </list-item>
        <list-item>
          <p>For <ext-link ext-link-type="uri" xlink:href="#r_analysis_code">analysis code</ext-link>, we refer to the Software Carpentry’s <ext-link ext-link-type="uri" xlink:href="https://swcarpentry.github.io/r-novice-gapminder/">fundamentals for reproducible scientific analysis in R</ext-link> (<xref ref-type="bibr" rid="B13411994">Zimmerman et al. 2019</xref>). More resources are listed on <ext-link ext-link-type="uri" xlink:href="https://data.agu.org/resources/introduction-to-open-science-agu">AGU’s Introduction to Open Science</ext-link> (<xref ref-type="bibr" rid="B13412126">Vrouwenvelder et al. 2024</xref>). The British Ecological Society <ext-link ext-link-type="uri" xlink:href="https://www.britishecologicalsociety.org/wp-content/uploads/2019/06/BES-Guide-Reproducible-Code-2019.pdf">guide on reproducible code</ext-link> (<xref ref-type="bibr" rid="B13412107">Cooper et al. 2017</xref>) and <xref ref-type="bibr" rid="B13410906">Stoudt et al. 2021</xref> list principles, while <xref ref-type="bibr" rid="B13410893">Sandve et al. 2013</xref> has rules for reproducible data analysis. Specifically for Data Science we recommend <ext-link ext-link-type="uri" xlink:href="https://r4ds.hadley.nz/">R for Data Science</ext-link> (<xref ref-type="bibr" rid="B13412134">Wickham et al. 2023a</xref>).</p>
        </list-item>
        <list-item>
          <p>For more information on the use of RMarkdown, see <ext-link ext-link-type="uri" xlink:href="https://bookdown.org/yihui/rmarkdown/">R Markdown: The Definitive Guide</ext-link> (<xref ref-type="bibr" rid="B13412150">Xie et al. 2023</xref>) and <ext-link ext-link-type="uri" xlink:href="https://data.agu.org/resources/r-guidance-agu-authors">Guidance for AGU Authors: R Script(s)/Markdown</ext-link> (<xref ref-type="bibr" rid="B13412158">Erdmann et al. 2021</xref>).</p>
        </list-item>
      </list></p>
      <sec sec-type="RStudio projects">
        <title>RStudio projects</title>
        <p>R code is run in a specific context, with an associated working directory, history, etc. If that context is undefined or too broad, it can create conflicts between projects or make it hard for others to run your code.</p>
        <p>To solve this, software MUST make the context explicit by including an <ext-link ext-link-type="uri" xlink:href="https://support.posit.co/hc/en-us/articles/200526207-Using-RStudio-Projects">RStudio project</ext-link> file (file with <monospace>.Rproj</monospace> extension) in the root of the repository to make the context explicit. This file will set your and everyone’s working directory at the root of the repository. In addition, software MUST only use relative paths starting at that project root to refer to files and MUST NOT use absolute paths. The implications of using absolute paths are described in the British Ecological Society <ext-link ext-link-type="uri" xlink:href="https://www.britishecologicalsociety.org/wp-content/uploads/2018/12/BES-Reproducible-Code.pdf">guide on reproducible code</ext-link> (<xref ref-type="bibr" rid="B13412107">Cooper et al. 2017</xref>). R code should strive to be as portable as possible, for example by never referring to a drive letter, network location or storage mounting point.</p>
        <p>Further benefits of RStudio Projects are described in <ext-link ext-link-type="uri" xlink:href="https://r-pkgs.org/workflow101.html#benefits-of-rstudio-projects">this section</ext-link> of the R Packages book (<xref ref-type="bibr" rid="B13411705">Wickham and Bryan 2015</xref>). Software carpentry provides <ext-link ext-link-type="uri" xlink:href="https://swcarpentry.github.io/r-novice-gapminder/02-project-intro.html">a guide on project management with Rstudio</ext-link> (<xref ref-type="bibr" rid="B13411994">Zimmerman et al. 2019</xref>).</p>
      </sec>
      <sec sec-type="Dependencies">
        <title>Dependencies</title>
        <p>Please refer to the <ext-link ext-link-type="uri" xlink:href="https://devguide.ropensci.org/pkg_building.html#pkgdependencies">rOpenSci recommendations</ext-link> (<xref ref-type="bibr" rid="B13411659">rOpenSci et al. 2024</xref>) regarding dependencies.</p>
        <p>Some recommendations for common use cases:</p>
        <p><list list-type="bullet">
          <list-item>
            <p>HTTP requests: <ext-link ext-link-type="uri" xlink:href="https://httr2.r-lib.org/">httr2</ext-link> (<xref ref-type="bibr" rid="B13412743">Wickham 2025</xref>), <ext-link ext-link-type="uri" xlink:href="https://jeroen.r-universe.dev/curl">curl</ext-link> (<xref ref-type="bibr" rid="B13412767">Ooms 2025a</xref>), <ext-link ext-link-type="uri" xlink:href="https://docs.ropensci.org/crul/">crul</ext-link> (<xref ref-type="bibr" rid="B13412790">Chamberlain 2025</xref>)</p>
          </list-item>
          <list-item>
            <p>Parsing JSON: <ext-link ext-link-type="uri" xlink:href="https://arxiv.org/abs/1403.2805">jsonlite</ext-link> (<xref ref-type="bibr" rid="B13412814">Ooms 2025b</xref>)</p>
          </list-item>
          <list-item>
            <p>Parsing XML: <ext-link ext-link-type="uri" xlink:href="https://xml2.r-lib.org/">xml2</ext-link> (<xref ref-type="bibr" rid="B13413005">Wickham et al. 2025a</xref>)</p>
          </list-item>
          <list-item>
            <p>Spatial data: <ext-link ext-link-type="uri" xlink:href="https://r-spatial.github.io/sf/">sf</ext-link> (<xref ref-type="bibr" rid="B13413054">Pebesma 2018</xref>, <xref ref-type="bibr" rid="B13413046">Pebesma and Bivand 2023</xref>, <xref ref-type="bibr" rid="B13413063">Pebesma 2025</xref>), do note that <ext-link ext-link-type="uri" xlink:href="https://cran.r-project.org/web/packages/rgdal/index.html">rgdal</ext-link> (<xref ref-type="bibr" rid="B13419078">Bivand et al. 2022</xref>), <ext-link ext-link-type="uri" xlink:href="https://cran.r-project.org/web/packages/rgeos/index.html">rgeos</ext-link> (<xref ref-type="bibr" rid="B13419088">Bivand and Rundel 2020</xref>) and <ext-link ext-link-type="uri" xlink:href="https://cran.r-project.org/web/packages/maptools/index.html">maptools</ext-link> (<xref ref-type="bibr" rid="B13419098">Bivand and Lewin-Koh 2019</xref>) are being deprecated, we thus advise against using <ext-link ext-link-type="uri" xlink:href="https://cran.r-project.org/package=sp">sp</ext-link> (<xref ref-type="bibr" rid="B13413063">Pebesma 2025</xref>, <xref ref-type="bibr" rid="B13419114">Pebesma and Bivand 2005</xref>, <xref ref-type="bibr" rid="B13419123">Bivand et al. 2013</xref>, <xref ref-type="bibr" rid="B13419134">Pebesma and Bivand 2025</xref>). <ext-link ext-link-type="uri" xlink:href="https://rspatial.github.io/terra/reference/terra-package.html">terra</ext-link> (<xref ref-type="bibr" rid="B13413080">Hijmans 2025</xref>) is preferred over <ext-link ext-link-type="uri" xlink:href="https://rspatial.org/raster/pkg/1-introduction.html">raster</ext-link> (<xref ref-type="bibr" rid="B13419144">Hijmans 2025b</xref>), as it is being retired (see this <ext-link ext-link-type="uri" xlink:href="https://www.r-bloggers.com/2023/06/upcoming-changes-to-popular-r-packages-for-spatial-data-what-you-need-to-do/">blogpost</ext-link> by <xref ref-type="bibr" rid="B13413088">Nowosad (2023)</xref>). More information about the migration can be found on the <ext-link ext-link-type="uri" xlink:href="https://r-spatial.org/r/2023/04/10/evolution3.html">r-spatial website</ext-link> (<xref ref-type="bibr" rid="B13413096">Bivand and Pebesma 2023</xref>), and <ext-link ext-link-type="uri" xlink:href="https://r-spatial.org/r/2022/04/12/evolution.html">this blogpost</ext-link> (<xref ref-type="bibr" rid="B13413104">Pebesma and Bivand 2022</xref>) about the retirement of <ext-link ext-link-type="uri" xlink:href="https://cran.r-project.org/package=sp">sp</ext-link>, <ext-link ext-link-type="uri" xlink:href="https://cran.r-project.org/package=rgdal">rgdal</ext-link>, <ext-link ext-link-type="uri" xlink:href="https://cran.r-project.org/package=maptools">maptools</ext-link> and <ext-link ext-link-type="uri" xlink:href="https://cran.r-project.org/package=rgeos">rgeos</ext-link>.</p>
          </list-item>
        </list></p>
        <p>In general, it is recommended to use packages from the tidyverse over base R functions in cases where the tidyverse alternative has significant advantages. For example, the case of <monospace>readr::read_csv()</monospace> over <monospace>base::read.table()</monospace>. The <ext-link ext-link-type="uri" xlink:href="https://readr.tidyverse.org/">readr</ext-link> (<xref ref-type="bibr" rid="B13419155">Wickham et al. 2024a</xref>) alternative is faster, has better error handling, and is easier to use. However, certainly <ext-link ext-link-type="uri" xlink:href="https://recology.info/2018/10/limiting-dependencies/">a case</ext-link> (<xref ref-type="bibr" rid="B13419176">Chamberlain 2018</xref>) can be made for having as few dependencies as possible, and wrapping your own functions around base to get around certain limitations. The question on when exactly you should take a dependency, depends on the context. The <ext-link ext-link-type="uri" xlink:href="https://r-pkgs.org/dependencies-mindset-background.html#sec-dependencies-pros-cons">R Packages book</ext-link> (<xref ref-type="bibr" rid="B13411705">Wickham and Bryan 2015</xref>) offers some guidance in this matter. <xref ref-type="bibr" rid="B13419188">Leek (2015)</xref> has written a blog post on his decision process: <ext-link ext-link-type="uri" xlink:href="https://simplystatistics.org/posts/2015-11-06-how-i-decide-when-to-trust-an-r-package/">How I decide when to trust an R package</ext-link> and the tidyverse (<xref ref-type="bibr" rid="B13419196">Pedersen 2022</xref>) makes <ext-link ext-link-type="uri" xlink:href="https://www.tidyverse.org/blog/2022/09/playing-on-the-same-team-as-your-dependecy/">a case</ext-link> for not using internal functions from dependencies.</p>
        <p>Adding a dependency to your <monospace>DESCRIPTION</monospace> file is easy using <ext-link ext-link-type="uri" xlink:href="https://usethis.r-lib.org/">usethis</ext-link>: <monospace>usethis::use_package("dplyr")</monospace></p>
        <p>Refer to the <ext-link ext-link-type="uri" xlink:href="https://devguide.ropensci.org/pkg_building.html#recommended-scaffolding">rOpenSci recommendations</ext-link> for more suggestions.</p>
      </sec>
      <sec sec-type="Code style">
        <title>Code style</title>
        <p><italic>Good coding style is like correct punctuation: you can manage without it, butitsuremakesthingseasiertoread</italic>. --- R for Data Science</p>
        <p>A number of useful packages exist to help you stick to the tidyverse style. To automatically modify your code to adhere to the recommendations, you can make use of <ext-link ext-link-type="uri" xlink:href="https://github.com/r-lib/styler">styler</ext-link> (<xref ref-type="bibr" rid="B13419205">Müller and Walthert 2024</xref>) which also exists as a plug-in for RStudio. To check your code for issues, you can use a liter, a popular choice for R is <ext-link ext-link-type="uri" xlink:href="https://lintr.r-lib.org/">lintr</ext-link> (<xref ref-type="bibr" rid="B13419216">Hester et al. 2025</xref>). More information regarding code style can be found in the rOpenSci Packages guide (<xref ref-type="bibr" rid="B13411659">rOpenSci et al. 2024</xref>) in the <ext-link ext-link-type="uri" xlink:href="#code_style">section on code style</ext-link>, the <ext-link ext-link-type="uri" xlink:href="https://style.tidyverse.org/">tidyverse style guide</ext-link> (<xref ref-type="bibr" rid="B13419228">The tidyverse team and Wickham 2025</xref>). Hadley Wickham (<xref ref-type="bibr" rid="B13412134">Wickham et al. 2023a</xref>) also offers some insight in his <ext-link ext-link-type="uri" xlink:href="https://r4ds.hadley.nz/workflow-style">workflow</ext-link> when it comes to code style.</p>
      </sec>
      <sec sec-type="Testing">
        <title>Testing</title>
        <p>Have you ever written any code that turned out to not really do what you wanted it to do? Made a change to a helper function that introduced bugs in other functions or scripts using it? Or found yourself running the same little ad hoc tests in the console time and time again to see if a function is behaving as expected? These are all signs that you could benefit from using automated testing.</p>
        <p>By writing tests that check the major functionality of your software, you are ensuring that changes along the line don’t break existing functionality. And that updates to underlying dependencies didn’t have unexpected consequences.</p>
        <p>A general overview of the how and why of testing R code is found in R Packages book chapter <ext-link ext-link-type="uri" xlink:href="https://r-pkgs.org/testing-basics.html">testing basics</ext-link> (<xref ref-type="bibr" rid="B13411705">Wickham and Bryan 2015</xref>). The rOpenSci Packages guide (<xref ref-type="bibr" rid="B13411659">rOpenSci et al. 2024</xref>) offers some helpful advice regarding tests in the <ext-link ext-link-type="uri" xlink:href="https://devguide.ropensci.org/pkg_building.html#testing">section on testing</ext-link>. Other interesting resources include <ext-link ext-link-type="uri" xlink:href="https://mtlynch.io/good-developers-bad-tests/">the blogpost</ext-link> by <xref ref-type="bibr" rid="B13419238">Lynch (2018)</xref> on why good developers write bad tests, the documentation of <ext-link ext-link-type="uri" xlink:href="https://testthat.r-lib.org/">testthat</ext-link> (<xref ref-type="bibr" rid="B13419256">Wickham 2025b</xref>, <xref ref-type="bibr" rid="B13419247">Wickham 2011</xref>) and <ext-link ext-link-type="uri" xlink:href="https://covr.r-lib.org/">covr</ext-link> (<xref ref-type="bibr" rid="B13419265">Hester 2023</xref>). And rOpenSci also offers a <ext-link ext-link-type="uri" xlink:href="https://books.ropensci.org/http-testing/">book on HTTP testing</ext-link> (<xref ref-type="bibr" rid="B13419275">Chamberlain and Salmon 2024</xref>). For more information on unit testing in general, you might find “Unit Testing Principles, Practices, and Patterns” by <xref ref-type="bibr" rid="B13410942">Khorikov (2020)</xref> a good resource.</p>
        <sec sec-type="Using testthat in practice">
          <title>Using testthat in practice</title>
          <p>Start using testthat for an existing R project by running: <monospace>usethis::use_testthat()</monospace></p>
          <p>Which will create ⁠<monospace>tests/testthat/</monospace>⁠ and <monospace>tests/testthat.R</monospace>, and adds the <ext-link ext-link-type="uri" xlink:href="https://testthat.r-lib.org/">testthat</ext-link> package to the <italic>Suggests</italic> field.</p>
          <p>Creating a test for an existing function is automated via <ext-link ext-link-type="uri" xlink:href="https://usethis.r-lib.org/">usethis</ext-link>:</p>
          <p>
            <preformat preformat-type="code" xml:space="preserve"># Explicitly refer to the file we want to test
usethis::use_test("filename_to_test")
# Or automatically if the file is already open and active in Rstudio
usethis::use_test()</preformat>
          </p>
          <p>While it is a good idea to regularly run your tests locally, it is also a good idea to automate this in the form of continuous integration:</p>
          <p>
            <preformat preformat-type="code" xml:space="preserve"># Runs R CMD CHECK which includes running all test
usethis::use_github_action("check-standard")
# Calculate the code coverage and report
usethis::use_github_action("test-coverage")</preformat>
          </p>
          <p>You can also add badges to your README page to signal your R CMD CHECK status (which includes your unit tests) and test coverage:</p>
          <p>
            <preformat preformat-type="code" xml:space="preserve">usethis::use_github_action("check-standard", badge = TRUE)
usethis::use_github_action("test-coverage", badge = TRUE)</preformat>
          </p>
          <p>Tests can then be run by:</p>
          <p>
            <preformat preformat-type="code" xml:space="preserve"># For a package
devtools::test()
# Or else, make sure your functions are loaded and then
testthat::test_dir("tests/testthat")</preformat>
          </p>
        </sec>
        <sec sec-type="Testing figures and plots">
          <title>Testing figures and plots</title>
          <p>The goal of unit testing is to compare the output of a function to some expectation or expected value, however, for some outputs this isn’t very practical. One example is binary outputs such as figures or plots. While <ext-link ext-link-type="uri" xlink:href="https://testthat.r-lib.org/">testthat</ext-link> offers a solution for this in the form of <ext-link ext-link-type="uri" xlink:href="https://testthat.r-lib.org/articles/snapshotting.html">snapshots</ext-link> (and this is certainly a very powerful and useful feature), these snapshot tests are very sensitive to minute changes.</p>
          <p><ext-link ext-link-type="uri" xlink:href="https://vdiffr.r-lib.org/">vdiffr</ext-link> (<xref ref-type="bibr" rid="B13419283">Henry et al. 2024</xref>) is a package that forms an extension to <ext-link ext-link-type="uri" xlink:href="https://testthat.r-lib.org/">testthat</ext-link>, it converts your visual outputs to reproducible svg files that are then compared as <ext-link ext-link-type="uri" xlink:href="https://testthat.r-lib.org/">testthat</ext-link> snapshots. This offers some relief, but might still result in false positive test failures. After all, if your plotting library changes its rendering slightly, the test will fail.</p>
          <p>A final option is to use a public accessor of your plotting library, for example <ext-link ext-link-type="uri" xlink:href="https://ggplot2.tidyverse.org/">ggplot2</ext-link> (<xref ref-type="bibr" rid="B13419301">Wickham et al. 2025c</xref>, <xref ref-type="bibr" rid="B13419292">Wickham 2016</xref>) offers <ext-link ext-link-type="uri" xlink:href="https://ggplot2.tidyverse.org/reference/ggplot_build.html?q=layer_data#details">a number</ext-link> of these assessors that allow you to test specific parts of every layer. <ext-link ext-link-type="uri" xlink:href="https://www.tidyverse.org/blog/2022/09/playing-on-the-same-team-as-your-dependecy/#testing-testing">This post</ext-link> (<xref ref-type="bibr" rid="B13419196">Pedersen 2022</xref>) on the tidyverse blog offers more insight on why you might want to go about testing this way.</p>
        </sec>
      </sec>
      <sec sec-type="Check your R code">
        <title>Check your R code</title>
        <p>There are several packages to check how well your R code is following best practices (from which many of the requirements in this document are derived):</p>
        <p><list list-type="bullet">
          <list-item>
            <p><ext-link ext-link-type="uri" xlink:href="https://docs.ropensci.org/pkgcheck/">pkgcheck</ext-link> (<xref ref-type="bibr" rid="B13419322">Padgham et al. 2025</xref>): follows rOpenSci recommendations.</p>
          </list-item>
          <list-item>
            <p><ext-link ext-link-type="uri" xlink:href="https://inbo.github.io/checklist/">checklist</ext-link> (<xref ref-type="bibr" rid="B13419330">Onkelinx 2025</xref>): works for R packages and analyses, follows INBO recommendations.</p>
          </list-item>
          <list-item>
            <p><ext-link ext-link-type="uri" xlink:href="https://lintr.r-lib.org/">lintr</ext-link> (<xref ref-type="bibr" rid="B13419216">Hester et al. 2025</xref>): performs <ext-link ext-link-type="uri" xlink:href="https://en.wikipedia.org/wiki/Static_program_analysis">static code analysis</ext-link> to highlight possible problems, including good practises and syntax.</p>
          </list-item>
          <list-item>
            <p><ext-link ext-link-type="uri" xlink:href="https://style.tidyverse.org/">styler</ext-link> (<xref ref-type="bibr" rid="B13419205">Müller and Walthert 2024</xref>): can automatically format code according to the tidyverse style guide.</p>
          </list-item>
          <list-item>
            <p><ext-link ext-link-type="uri" xlink:href="http://mangothecat.github.io/goodpractice/">goodpractice</ext-link> (<xref ref-type="bibr" rid="B13419339">Padgham et al. 2025b</xref>) informs about different good practices for packages.</p>
          </list-item>
          <list-item>
            <p><ext-link ext-link-type="uri" xlink:href="https://russhyde.github.io/dupree/">dupree</ext-link> (<xref ref-type="bibr" rid="B13419350">Hyde 2020</xref>) identifies sections of code that are very similar or repeated.</p>
          </list-item>
        </list></p>
      </sec>
    </sec>
    <sec sec-type="R functions">
      <title>R functions</title>
      <p>There are a number of advantages to wrapping existing code into functions, as put by <xref ref-type="bibr" rid="B13419367">Tierney (2023)</xref> in <ext-link ext-link-type="uri" xlink:href="https://www.njtierney.com/post/2023/11/10/how-to-get-good-with-r">his excellent blog post on how to get better at R</ext-link>:</p>
      <p><italic>I don’t think I can overstate this, but learning how to write functions changed how I think about code and how I think about solving problems</italic>. --- Nicholas Tierney</p>
      <p>This same blog post also contains a simple example of how to turn existing code into a function. A more in depth description can be found in <ext-link ext-link-type="uri" xlink:href="#r_functions">the section on functions</ext-link> in R for Data Science (<xref ref-type="bibr" rid="B13412134">Wickham et al. 2023a</xref>).</p>
      <p>To summarize the why, you should use functions to:</p>
      <p><list list-type="bullet">
        <list-item>
          <p>Create more readable code by placing difficult to understand code into functions.</p>
        </list-item>
        <list-item>
          <p>Avoid errors when reusing (copy/pasting) code multiple times over the same analysis.</p>
        </list-item>
      </list></p>
      <p>However, using functions is not without its pitfalls. But many issues can be avoided by sticking to some ground rules:</p>
      <p>Functions need to be self-contained, the reasoning behind is explained well in the section “writing functions” in the British Ecological Society <ext-link ext-link-type="uri" xlink:href="https://www.britishecologicalsociety.org/wp-content/uploads/2019/06/BES-Guide-Reproducible-Code-2019.pdf">guide on reproducible code</ext-link> (<xref ref-type="bibr" rid="B13412107">Cooper et al. 2017</xref>). Practically this means:</p>
      <p><list list-type="bullet">
        <list-item>
          <p>A function SHOULD NOT rely on data from outside of the function whenever possible.</p>
        </list-item>
        <list-item>
          <p>A function SHOULD NOT manipulate data outside of the function, thus it MUST NOT make changes to objects in the global environment. If you are importing data from the system to R, return an object rather than modifying the global environment (as is also explained in the <ext-link ext-link-type="uri" xlink:href="https://style.tidyverse.org/functions.html">tidyverse style guide</ext-link>, <xref ref-type="bibr" rid="B13419228">The tidyverse team and Wickham 2025</xref>).</p>
        </list-item>
        <list-item>
          <p>If it is necessary to make changes to data outside of the function, create a new file rather than making changes to an existing one. Functions that create new files MUST make this clear in their name, a good example is starting the function with write, for example <monospace>write_csv()</monospace> from <ext-link ext-link-type="uri" xlink:href="https://readr.tidyverse.org/">readr</ext-link> (<xref ref-type="bibr" rid="B13419155">Wickham et al. 2024a</xref>).</p>
        </list-item>
      </list></p>
      <p>Keeping your functions separate from analysis code can improve the readability of the analysis, and ease the maintenance of the functions. It is considered best practice to place every function in its own <monospace>.R</monospace> file, and to name this file after the function. As described in the <ext-link ext-link-type="uri" xlink:href="https://r-pkgs.org/code.html#sec-code-organising">R Packages book</ext-link> (<xref ref-type="bibr" rid="B13411705">Wickham and Bryan 2015</xref>). You can create such a file using: <monospace>usethis::use_r("function-name")</monospace></p>
      <p>And start your function using <ext-link ext-link-type="uri" xlink:href="https://rstudio.github.io/rstudio-extensions/rstudio_snippets.html">the included code snippet</ext-link> in RStudio.</p>
      <p>A sure way to confuse users is for a function to return a different output with the same inputs/arguments; this is the case when some of the inputs are implicit. For example, an option or locale setting, the system time or a local datafile that might have changed. Using implicit arguments can lead to difficult to trace behaviours across different computers, and makes a function more difficult to read. A notable exception is when there is an element of randomisation in the output. In this case it is a good idea to allow for setting the seed as a function argument to make this behaviour clear for the user and to allow for reproducible results. For more information about this, read <ext-link ext-link-type="uri" xlink:href="https://design.tidyverse.org/inputs-explicit.html">this excellent section</ext-link> in the tidyverse design principles (<xref ref-type="bibr" rid="B13419376">Wickham 2025c</xref>).</p>
      <p><italic>One of the best ways to improve your reach as a data scientist is to write functions</italic>. --- R for Data Science</p>
      <p>Further reading:</p>
      <p><list list-type="bullet">
        <list-item>
          <p>An excellent overview of how functions actually work in R can be found in the section on functions in R for Data Science (<xref ref-type="bibr" rid="B13412134">Wickham et al. 2023a</xref>), the rest of the section also includes an excellent overview of best practices.</p>
        </list-item>
        <list-item>
          <p>Nicholas Tierney provides an easy to follow example of how functions can make your life easier and how to get started with writing them in <ext-link ext-link-type="uri" xlink:href="https://www.njtierney.com/post/2023/11/10/how-to-get-good-with-r/#write-functions">this blogpost</ext-link> (<xref ref-type="bibr" rid="B13419367">Tierney 2023</xref>).</p>
        </list-item>
        <list-item>
          <p>Principles and strategies that come in handy when writing functions (and packages) are summarized in <ext-link ext-link-type="uri" xlink:href="http://design.tidyverse.org">the tidyverse design principles</ext-link> (<xref ref-type="bibr" rid="B13419376">Wickham 2025c</xref>).</p>
        </list-item>
        <list-item>
          <p>Berkeley offers an introduction to functions in its <ext-link ext-link-type="uri" xlink:href="https://www.stat.berkeley.edu/~statcur/Workshop2/Presentations/functions.pdf">Introduction to the R Language</ext-link> presentation (<xref ref-type="bibr" rid="B13419394">Peng 2020a</xref>, <xref ref-type="bibr" rid="B13419402">Peng 2020b</xref>, <xref ref-type="bibr" rid="B13419385">Peng 2015</xref>).</p>
        </list-item>
        <list-item>
          <p>Software Carpentry has an excellent <ext-link ext-link-type="uri" xlink:href="http://swcarpentry.github.io/swc-releases/2017.08/r-novice-inflammation/02-func-R/">course page on R functions</ext-link> (<xref ref-type="bibr" rid="B13411994">Zimmerman et al. 2019</xref>).</p>
        </list-item>
      </list></p>
      <sec sec-type="How to split a script into functions">
        <title>How to split a script into functions</title>
        <p>The process of taking an existing script and converting it into a collection of functions that make the workflow more flexible, easier to maintain and more efficient, is an example of <ext-link ext-link-type="uri" xlink:href="https://en.wikipedia.org/wiki/Code_refactoring">code refactoring</ext-link>.</p>
        <p>An often repeated principle in refactoring and software development in general is <ext-link ext-link-type="uri" xlink:href="https://en.wikipedia.org/wiki/Don%27t_repeat_yourself">DRY</ext-link> (Don’t Repeat Yourself), and while there are certainly <ext-link ext-link-type="uri" xlink:href="https://startup-cto.medium.com/moist-code-why-code-should-not-be-completely-dry-1f06f2d31c31">situations</ext-link> (<xref ref-type="bibr" rid="B13419410">Bartholomae 2020</xref>) where you should repeat yourself (see also <ext-link ext-link-type="uri" xlink:href="https://kentcdodds.com/blog/aha-programming">AHA programming</ext-link> (<xref ref-type="bibr" rid="B13419432">Dodds 2020</xref>), <ext-link ext-link-type="uri" xlink:href="https://enterprisecraftsmanship.com/posts/dry-damp-unit-tests/">arguments</ext-link> (<xref ref-type="bibr" rid="B13419238">Lynch 2018</xref>, <xref ref-type="bibr" rid="B13419440">Khorikov 2020b</xref>) for repeating yourself in unit tests), avoiding repetition makes your code easier to maintain and understand. Functions are the most obvious tool we have to avoid repetition, with the equally important benefit that they can offer serious documentation benefits and can make it easier for existing software to be used flexibly in the future.</p>
        <p>Looking at an existing script, it is useful to consider what every part actually does (<ext-link ext-link-type="uri" xlink:href="https://en.wikipedia.org/wiki/Rubber_duck_debugging">rubber duck debugging</ext-link> can be a useful technique in this). These logical sections and their substeps are good starting points.</p>
        <p>Encapsulate repeated code blocks, or logical subsections that perform a single task (especially if they do it multiple times) into functions, and place objects that can influence the output as arguments. This can be a bit of a judgement call, but things like input file paths, output file paths, filters on the data such as taxonomy or time, number of bootstraps, random seeds etc. make for ideal argument choices. Often an object keeps being passed from section to section <ext-link ext-link-type="uri" xlink:href="https://en.wikipedia.org/wiki/Extract,_transform,_load">undergoing transformations on the way</ext-link>, and finally resulting in some output. If this is the case, the data object MUST be the first argument. For more guidance on this step, refer to the <ext-link ext-link-type="uri" xlink:href="#function_arguments">section on arguments</ext-link>.</p>
        <p>The Research Institute for Nature and Forest (INBO) has a coding club session (<xref ref-type="bibr" rid="B13419456">Oldoni 2023</xref>) on functions that has practical exercises on how to turn an existing script into functions, and even finally a package. You can find this session <ext-link ext-link-type="uri" xlink:href="https://inbo.github.io/coding-club/sessions/20230926_functions_in_r.html#1">here</ext-link>. Jennifer Bryan presented on “code smells” in 2018 during the useR conference (<xref ref-type="bibr" rid="B13419464">Bryan 2018</xref>). Code smells are a useful tool to identify parts of code that contain bad practices and are good candidates for refactoring. This presentation is available on <ext-link ext-link-type="uri" xlink:href="https://youtu.be/7oyiPBjLAWY?feature=shared">YouTube</ext-link>.</p>
      </sec>
      <sec sec-type="Naming functions">
        <title>Naming functions</title>
        <p>From the tidyverse style guide:</p>
        <p><italic>There are only two hard things in Computer Science: cache invalidation and naming things</italic>. --- Phil Karlton</p>
        <p>Use verbs to name functions whenever possible, this is a clear indication that a function <italic>does</italic> something, in contrast to other objects. For more guidance please refer to the tidyverse style guide <ext-link ext-link-type="uri" xlink:href="https://style.tidyverse.org/functions.html#naming">section on functions</ext-link> (<xref ref-type="bibr" rid="B13419228">The tidyverse team and Wickham 2025</xref>). Keep in mind that the name of the function should describe what it does as closely as possible.</p>
        <p>If you find this difficult, consider if your function isn’t doing too much. Ideally a function should only do one thing, and only return one thing.</p>
      </sec>
      <sec sec-type="Function arguments">
        <title>Function arguments</title>
        <p>Consistent naming of arguments across functions greatly improves user friendliness. For guidance on object naming, please refer to <ext-link ext-link-type="uri" xlink:href="https://style.tidyverse.org/syntax.html#object-names">this section</ext-link> of the tidyverse style guide (<xref ref-type="bibr" rid="B13419228">The tidyverse team and Wickham 2025</xref>).</p>
        <p>In the same vein, it is best practice to place the most important arguments first, because these will be used first. This practice is covered by <ext-link ext-link-type="uri" xlink:href="https://design.tidyverse.org/important-args-first.html">the tidyverse design principles</ext-link> (<xref ref-type="bibr" rid="B13419376">Wickham 2025c</xref>). Doing this, also signals to the user what arguments they should minimally provide. It is also a good idea to never provide defaults for required arguments, and always provide defaults for optional arguments, as covered by <ext-link ext-link-type="uri" xlink:href="https://design.tidyverse.org/required-no-defaults.html">this tidyverse design principle</ext-link>. This pattern communicates to users which arguments are required, and which ones are not, without having to read the documentation.</p>
        <p>Similarly, functions that return objects or data of the same type as their input, MUST place this input as their first argument. This also ensures that functions are as compatible with pipes as possible (in base R |&gt; or <xref ref-type="bibr" rid="B13419472">Bache and Wickham (2022)</xref>'s <ext-link ext-link-type="uri" xlink:href="https://magrittr.tidyverse.org/">magrittr</ext-link> <italic>%&gt;%</italic>).</p>
        <p>Other tidyverse design principles regarding function arguments:</p>
        <p><list list-type="bullet">
          <list-item>
            <p>
              <ext-link ext-link-type="uri" xlink:href="https://design.tidyverse.org/defaults-short-and-sweet.html">Keep defaults short and sweet</ext-link>
            </p>
          </list-item>
          <list-item>
            <p>
              <ext-link ext-link-type="uri" xlink:href="https://design.tidyverse.org/enumerate-options.html">Enumerate possible options</ext-link>
            </p>
          </list-item>
          <list-item>
            <p>
              <ext-link ext-link-type="uri" xlink:href="https://design.tidyverse.org/boolean-strategies.html">Prefer a enum, even if only two choices</ext-link>
            </p>
          </list-item>
        </list></p>
      </sec>
      <sec sec-type="Documenting functions">
        <title>Documenting functions</title>
        <p>Functions that are well written can be considered partially self documenting, their name is an indication of what they do and their arguments tell the user what is expected and in what shape. However, apart from this, adding additional information will make it much easier for your future self and others to reuse your code. R comes with this functionality built in in the form of <monospace>.Rd</monospace> files in the man/ folder. Instead of creating these files manually, this additional documentation MUST be written in the form of <ext-link ext-link-type="uri" xlink:href="https://roxygen2.r-lib.org/articles/roxygen2.html">roxygen2</ext-link> (<xref ref-type="bibr" rid="B13411696">Wickham et al. 2024b</xref>) documentation, which takes the form of commented out text right above your function. The <monospace>.Rd</monospace> files are then rendered whenever you run: <monospace>devtools::document()</monospace></p>
        <p>It is recommended that you add at least one example of the basic functionality of your function in the <ext-link ext-link-type="uri" xlink:href="https://roxygen2.r-lib.org/">roxygen2</ext-link> documentation. A very minimal example that uses <ext-link ext-link-type="uri" xlink:href="https://roxygen2.r-lib.org/">roxygen2</ext-link> documentation is the <monospace>fct_rev()</monospace> function from <ext-link ext-link-type="uri" xlink:href="https://forcats.tidyverse.org/">forcats</ext-link> (<xref ref-type="bibr" rid="B13419480">Wickham 2023</xref>):</p>
        <p>
          <preformat preformat-type="code" xml:space="preserve">#' Reverse order of factor levels
#'
#' This is sometimes useful when plotting a factor.
#'
#' @param f A factor (or character vector).
#' @export
#' @examples
#' f &lt;- factor(c("a", "b", "c"))
#' fct_rev(f)
fct_rev &lt;- function(f) {
  f &lt;- check_factor(f)
  lvls_reorder(f, rev(lvls_seq(f)))
}</preformat>
        </p>
        <p>An additional advantage of this system is that every function will automatically get its own page on your <ext-link ext-link-type="uri" xlink:href="#documentation_website">documentation website</ext-link>. A screenshot of the webpage that was created for the function above is shown in Fig. <xref ref-type="fig" rid="F13411068">1</xref></p>
        <p>If you are new to documenting functions, have a look at <ext-link ext-link-type="uri" xlink:href="https://r-pkgs.org/man.html">the chapter on function documentation</ext-link> in the R Packages book (<xref ref-type="bibr" rid="B13411705">Wickham and Bryan 2015</xref>). There is also <ext-link ext-link-type="uri" xlink:href="https://devguide.ropensci.org/pkg_building.html#roxygen-2-use">the getting started</ext-link> page of roxygen2 (<xref ref-type="bibr" rid="B13411696">Wickham et al. 2024b</xref>), and finally the rOpenSci Packages guide (<xref ref-type="bibr" rid="B13411659">rOpenSci et al. 2024</xref>) offers some advice in <ext-link ext-link-type="uri" xlink:href="https://devguide.ropensci.org/pkg_building.html#roxygen2-use">the section about documentation</ext-link>.</p>
      </sec>
    </sec>
    <sec sec-type="R packages">
      <title>R packages</title>
      <p>Hadley Wickham and Jennifer Bryan have written an <ext-link ext-link-type="uri" xlink:href="https://r-pkgs.org/">excellent guide on R Packages</ext-link> (<xref ref-type="bibr" rid="B13411705">Wickham and Bryan 2015</xref>), that comes highly recommended. This document goes through all the required steps to creating a package. More advanced is the R projects <ext-link ext-link-type="uri" xlink:href="https://cran.r-project.org/doc/manuals/r-release/R-exts.html">manual on writing R extensions</ext-link> (<xref ref-type="bibr" rid="B13411756">R Core Team et al. 2025</xref>). Hadley Wickham has included sections on functional and object oriented programming in his book <ext-link ext-link-type="uri" xlink:href="https://adv-r.hadley.nz">Advanced R</ext-link> (<xref ref-type="bibr" rid="B13419493">Wickham 2019b</xref>) that might come in useful.</p>
      <p>A lot of the tooling around R packages is also useful for R analysis code formatted as a script. However, while it might look intimidating at first, authoring an R package isn’t nearly as difficult as it might seem. Below there is an included example of R commands that set up an R package, and the required documentation, create a first function, tests for that function, update the documentation and run the package tests. All of this can be done equally well for a script, but this requires a lot more manual work.</p>
      <p>
        <preformat preformat-type="code" xml:space="preserve"># Starting a minimal R package --------
## Setup everything we need in a single line, isn't usethis amazing?
usethis::create_package("packagename")
## We will be using GIT for our version control
usethis::use_git()
# Further repository setup according to guidelines --------
## Add an MIT licence file
usethis::use_mit_license(copyright_holder = "institution name")
## Tell the world how to contribute
usethis::use_tidy_coc()
usethis::use_tidy_contributing()
## Write a README, in Rmd format if we want to show off our code
usethis::use_readme_rmd()
## Let's use github actions for some automation
usethis::use_github_action("check-standard", badge = TRUE)
usethis::use_github_action("test-coverage", badge = TRUE)
# Let's write our first function --------
usethis::use_r("cool_function_name")
## And add a test for it too!
usethis::use_testthat()
usethis::use_test()
## Update the documentation
devtools::document()
## Run all the tests
devtools::test()</preformat>
      </p>
      <sec sec-type="Naming your package">
        <title>Naming your package</title>
        <p>Naming a package or analysis script can be difficult. <xref ref-type="bibr" rid="B13411659">rOpenSci et al. (2024)</xref> offers <ext-link ext-link-type="uri" xlink:href="https://devguide.ropensci.org/pkg_building.html#naming-your-package">a number of recommendations</ext-link> on this topic. To check if your package name is available, you can use the <ext-link ext-link-type="uri" xlink:href="https://r-lib.github.io/available/">available</ext-link> package (<xref ref-type="bibr" rid="B13419520">Ganz et al. 2023</xref>), which can also inform you about possible other interpretations of the name, including possibly offensive ones.</p>
        <p>
          <preformat preformat-type="code" xml:space="preserve">available::available("mycoolpkgname")</preformat>
        </p>
        <p><xref ref-type="bibr" rid="B13419576">Tierney (2018)</xref> also gives <ext-link ext-link-type="uri" xlink:href="https://www.njtierney.com/post/2018/06/20/naming-things/">an interesting overview</ext-link> of trends in naming packages. <xref ref-type="bibr" rid="B13419584">Xie (2017)</xref> makes <ext-link ext-link-type="uri" xlink:href="https://yihui.org/en/2017/12/typing-names/">an excellent case</ext-link> for easy to type names without too many case changes.</p>
      </sec>
      <sec sec-type="Creating metadata for your package">
        <title>Creating metadata for your package</title>
        <p>The <ext-link ext-link-type="uri" xlink:href="https://codemeta.github.io/">CodeMeta project</ext-link> defines a <monospace>codemeta.json</monospace> metadata file (in JSON-LD format) that helps machines interpret information about your package. This is useful because it can ease the attribution, discoverability and reuse of your code beyond the tools already present in the R ecosystem. A <monospace>codemeta.json</monospace> makes it more likely someone will find your software who doesn’t know where to look for it, and that you’ll get credit for it when it is reused by allowing different metadata standards to be translated into each other via codemeta. The CodeMeta project makes <ext-link ext-link-type="uri" xlink:href="https://codemeta.github.io/">a strong case</ext-link> for its inclusion in repositories. <ext-link ext-link-type="uri" xlink:href="https://docs.ropensci.org/codemetar/index.html#why-create-a-codemetajson-for-your-package">And so does rOpenSci</ext-link> (<xref ref-type="bibr" rid="B13419592">Boettiger and Salmon 2025</xref>).</p>
        <p>Creating such a file is also very easy as it can be generated from the information already present in your <monospace>README</monospace>, <monospace>DESCRIPTION</monospace> and <monospace>CITATION</monospace> files. From the root of your package run: <monospace>codemetar::write_codemeta()</monospace></p>
      </sec>
      <sec sec-type="Console messages">
        <title>Console messages</title>
        <p>Sometimes a package needs to communicate directly with its user; this is usually done through either <monospace>message()</monospace>, <monospace>warning()</monospace> or <monospace>stop()</monospace>. The <ext-link ext-link-type="uri" xlink:href="https://devguide.ropensci.org/pkg_building.html#console-messages">rOpenSci Packages guide</ext-link> (<xref ref-type="bibr" rid="B13411659">rOpenSci et al. 2024</xref>) advises against using <monospace>print()</monospace> or <monospace>cat()</monospace> because these kinds of messages are much more difficult for the user to suppress. Additionally, these kinds of messages are also more difficult to write good tests for.</p>
        <p>Apart from base R, the package <ext-link ext-link-type="uri" xlink:href="https://cli.r-lib.org/">cli</ext-link> (<xref ref-type="bibr" rid="B13411825">Csárdi et al. 2025</xref>) comes recommended for its many useful tools regarding good looking command line interfaces. Functions from cli also offer some advantages when used in assertions within functions over the popular <ext-link ext-link-type="uri" xlink:href="https://github.com/hadley/assertthat">assertthat</ext-link> (<xref ref-type="bibr" rid="B13411834">Wickham 2019</xref>) and <monospace>stopifnot()</monospace> from base. Please refer to the documentation of <monospace>cli_abort()</monospace> <ext-link ext-link-type="uri" xlink:href="https://cli.r-lib.org/reference/cli_abort.html">here</ext-link>. A practical example of how you could use cli instead of assertthat can be observed in <ext-link ext-link-type="uri" xlink:href="https://github.com/frictionlessdata/frictionless-r/commit/aad0cd8e894a5a556d2a197348ba9169c267a55b">this commit</ext-link> on the <ext-link ext-link-type="uri" xlink:href="https://docs.ropensci.org/frictionless/">frictionless</ext-link> R package (<xref ref-type="bibr" rid="B13411848">Desmet et al. 2025</xref>).</p>
      </sec>
      <sec sec-type="README">
        <title>README</title>
        <p>For general instructions, see <ext-link ext-link-type="uri" xlink:href="https://docs.b-cubed.eu/guides/software-development/#repo-readme">the README file</ext-link> section. The <monospace>README</monospace> file for R packages largely takes the same form as the one required for all repositories. Additionally, a number of useful tools are available to you as a developer to create a great <monospace>README</monospace>.</p>
        <p>If you don’t have a README yet, you can create one with <ext-link ext-link-type="uri" xlink:href="https://usethis.r-lib.org/reference/use_readme_rmd.html">usethis</ext-link>: <monospace>usethis::use_readme_md()</monospace></p>
        <p>If you want to include code and its output in your <monospace>README</monospace>, you can instead create a <monospace>README.Rmd</monospace> in R markdown, and then render that to a traditional <monospace>README.md</monospace> file. Again, you can create one with <ext-link ext-link-type="uri" xlink:href="https://usethis.r-lib.org/reference/use_readme_rmd.html">usethis</ext-link>: <monospace>usethis::use_readme_rmd()</monospace></p>
        <p>This will not only create a <monospace>README.Rmd</monospace>, but also add some lines to <monospace>.Rbuildignore</monospace> and create a Git pre-commit hook to help remind you to keep <monospace>README.Rmd</monospace> and <monospace>README.md</monospace> synchronized. After you’ve made changes to <monospace>README.Rmd</monospace>, remember to update <monospace>README.md</monospace> by running: <monospace>devtools::build_readme()</monospace> via the devtools package (<xref ref-type="bibr" rid="B13411798">Wickham et al. 2022</xref>).</p>
        <sec sec-type="Adding badges to the README file">
          <title>Adding badges to the README file</title>
          <p><ext-link ext-link-type="uri" xlink:href="https://usethis.r-lib.org/">Usethis</ext-link> (<xref ref-type="bibr" rid="B13411687">Wickham et al. 2024b</xref>) includes <ext-link ext-link-type="uri" xlink:href="https://usethis.r-lib.org/reference/badges.html">some useful functions</ext-link> you can use to add badges to your <monospace>README</monospace> file, for example for <ext-link ext-link-type="uri" xlink:href="https://lifecycle.r-lib.org/articles/stages.html">the lifecycle</ext-link> (<xref ref-type="bibr" rid="B13411790">Henry and Wickham 2023</xref>) of your software: <monospace>usethis::use_lifecycle_badge(stage = "stable")</monospace></p>
          <p>Some <ext-link ext-link-type="uri" xlink:href="https://usethis.r-lib.org/reference/use_github_action.html">other functions</ext-link> within <ext-link ext-link-type="uri" xlink:href="https://usethis.r-lib.org/">usethis</ext-link> (<xref ref-type="bibr" rid="B13411687">Wickham et al. 2024b</xref>) will also allow you to add a badge to your <monospace>README</monospace>, for example you can advertize your code coverage using the test-coverage action: <monospace>usethis::use_github_action("test-coverage", badge = TRUE)</monospace></p>
        </sec>
      </sec>
      <sec sec-type="Documentation website">
        <title>Documentation website</title>
        <p>A documentation website allows (potential) users to learn about your package and its functionality without having to install it first. Luckily, prior knowledge of web development is not needed to create a documentation website for R packages. It can be generated automatically with <ext-link ext-link-type="uri" xlink:href="https://pkgdown.r-lib.org/">pkgdown</ext-link> (<xref ref-type="bibr" rid="B13411780">Wickham et al. 2025</xref>), which will pull the information you already included in the <ext-link ext-link-type="uri" xlink:href="#the_readme_file">README file</ext-link> and <ext-link ext-link-type="uri" xlink:href="#documenting_functions">function documentation</ext-link>. <ext-link ext-link-type="uri" xlink:href="https://pkgdown.r-lib.org/articles/pkgdown.html">The introduction page</ext-link> of pkgdown describes its basic use (the documentation website of pkgdown was created with pkgdown). Here’s how to get started:</p>
        <p>
          <preformat preformat-type="code" xml:space="preserve"># Run once to configure package to use pkgdown
usethis::use_pkgdown()
# Run to build the website
pkgdown::build_site()</preformat>
        </p>
        <p>By default, your website will include a homepage and a function reference, but there are several more pages you can add. The most useful ones are articles (called “vignettes”) to explain a certain functionality or workflow in a more tutorial-like fashion:</p>
        <p>
          <preformat preformat-type="code" xml:space="preserve"># Create a vignette
usethis::use_vignette("vignette-title")</preformat>
        </p>
        <p>Since vignettes are included in the source code; users can also consult them when offline (in RStudio):</p>
        <p>
          <preformat preformat-type="code" xml:space="preserve"># Loading a vignette from dplyr (works offline too)
library(dplyr)
vignette("in-packages")
# This is the same page as https://dplyr.tidyverse.org/articles/in-packages.html</preformat>
        </p>
        <p>Since we are using GitHub to host our code, deploying a website is fairly straightforward:</p>
        <p>
          <preformat preformat-type="code" xml:space="preserve">usethis::use_pkgdown_github_pages()</preformat>
        </p>
        <p>Neal Richardson posted a step-by-step guide to using pkgdown <ext-link ext-link-type="uri" xlink:href="https://enpiar.com/2017/11/21/getting-down-with-pkgdown/">on his website</ext-link> (<xref ref-type="bibr" rid="B13411772">Richardson 2017</xref>). <xref ref-type="bibr" rid="B13411659">rOpenSci et al. (2024)</xref> also offers some guidance in their <ext-link ext-link-type="uri" xlink:href="https://devguide.ropensci.org/pkg_building.html#website">chapter on pkgdown</ext-link>.</p>
      </sec>
      <sec sec-type="DESCRIPTION and authorship">
        <title>DESCRIPTION and authorship</title>
        <p>The <monospace>DESCRIPTION</monospace> file includes, among others things, a list of all authors and contributors to the package. Apart from information about the authors, it also includes vital metadata about the version, licence and purpose of the included code. This file thus forms an important piece of metadata for the code it describes. This is also another place to refer to any external resources, such as the github repository where users can file bug reports or URLs to any external web APIs that may be called.</p>
        <p>To uniquely identify the contributors to the software, it is very useful to include ORCID identifiers under the Authors in the description. The benefits of this are described on <ext-link ext-link-type="uri" xlink:href="https://ropensci.org/blog/2018/10/08/orcid/">this rOpenSci blog post</ext-link> (<xref ref-type="bibr" rid="B13411764">Salmon 2018</xref>). An example:</p>
        <p>
          <preformat preformat-type="code" xml:space="preserve">Authors@R: person( "Pieter", "Huybrechts", email = "pieter.huybrechts@inbo.be", role = c("aut", "cre"), comment = c(ORCID = "0000-0002-6658-6062"))</preformat>
        </p>
        <p>Further guidance on editing DESCRIPTION files can be found in the <ext-link ext-link-type="uri" xlink:href="https://r-pkgs.org/description.html">chapter on package metadata</ext-link> in the R Packages book (<xref ref-type="bibr" rid="B13411705">Wickham and Bryan 2015</xref>). A more detailed overview can be found in the R project <ext-link ext-link-type="uri" xlink:href="https://cran.rstudio.com/doc/manuals/r-release/R-exts.html#The-DESCRIPTION-file">manual on writing R extensions</ext-link> (<xref ref-type="bibr" rid="B13411756">R Core Team et al. 2025</xref>).</p>
      </sec>
      <sec sec-type="CITATION">
        <title>CITATION</title>
        <p>R packages commonly include a <monospace>CITATION</monospace> file (no extension) that provides information about how the package should be cited. See the <ext-link ext-link-type="uri" xlink:href="https://devguide.ropensci.org/pkg_building.html#citation-file">CITATION file section</ext-link> in the rOpenSci Packages guide for guidance. This file can be created with:</p>
        <p>
          <preformat preformat-type="code" xml:space="preserve">usethis::use_citation()</preformat>
        </p>
        <p>And users can retrieve its information with:</p>
        <p>
          <preformat preformat-type="code" xml:space="preserve">citation("package-name")</preformat>
        </p>
        <p>All repositories MUST also include a <monospace>CITATION.cff</monospace> file (see <ext-link ext-link-type="uri" xlink:href="#add_a_citationcff_file">Add a CITATION.cff file</ext-link>. You can keep it in sync with the <monospace>CITATION</monospace> file using a <ext-link ext-link-type="uri" xlink:href="https://docs.ropensci.org/cffr/reference/cff_gha_update.html">GitHub action</ext-link> provided by the <ext-link ext-link-type="uri" xlink:href="https://docs.ropensci.org/cffr/">cffr (</ext-link><xref ref-type="bibr" rid="B13411739">Hernangómez 2021</xref>) package.</p>
        <p>rOpenSci offers a useful <ext-link ext-link-type="uri" xlink:href="https://ropensci.org/blog/2021/11/16/how-to-cite-r-and-r-packages/">blog post</ext-link> (<xref ref-type="bibr" rid="B13411731">LaZerte 2021</xref>) on how to cite R and R packages that is a good read for both software authors and users.</p>
      </sec>
      <sec sec-type="LICENSE">
        <title>LICENSE</title>
        <p>As described in the <ext-link ext-link-type="uri" xlink:href="#create_a_repository">Create a repository</ext-link> section, all software produced in the context MUST be licenced under the <ext-link ext-link-type="uri" xlink:href="https://mit-license.org/">MIT licence</ext-link>. The copyright holder of the software will be the institution that will be maintaining the package, not the authors of the package.</p>
        <p>Adding this LICENSE file is easy with <ext-link ext-link-type="uri" xlink:href="https://usethis.r-lib.org/">usethis</ext-link>, <xref ref-type="bibr" rid="B13411687">Wickham et al. (2024b)</xref> (take care to immediately set the copyright holder, as it will default to the package authors):</p>
        <p>
          <preformat preformat-type="code" xml:space="preserve">usethis::use_mit_license(copyright_holder = "institution name")</preformat>
        </p>
        <p>This function will also set the License field in the <ext-link ext-link-type="uri" xlink:href="#description_and_authorship">DESCRIPTION file</ext-link>. For more information on package licensing, refer to the <ext-link ext-link-type="uri" xlink:href="https://r-pkgs.org/license.html">section on licensing</ext-link> in the R Packages book (<xref ref-type="bibr" rid="B13411705">Wickham and Bryan 2015</xref>).</p>
      </sec>
      <sec sec-type="Examples">
        <title>Examples</title>
        <p>Examples show users how to use your software, and will often be the first thing people look at when they have trouble reusing your code. Thus including them not only fills an educational niche, but also provides a nice piece of documentation.</p>
        <p>All functions intended to be used by users (i.e. public functions) MUST have an example in their <ext-link ext-link-type="uri" xlink:href="https://roxygen2.r-lib.org/">roxygen2</ext-link> (<xref ref-type="bibr" rid="B13411696">Wickham et al. 2024a</xref>) documentation. But even for analysis code or workflows, including an example can be very helpful. More complex examples (or example workflows) SHOULD be included in a vignette. Every repository that contains R code MUST at least have one vignette.</p>
        <p>Creating a vignette is automated by <ext-link ext-link-type="uri" xlink:href="https://usethis.r-lib.org/">usethis</ext-link> (<xref ref-type="bibr" rid="B13411687">Wickham et al. 2024</xref>), Keep in mind this will not work if you don’t have a <ext-link ext-link-type="uri" xlink:href="https://docs.b-cubed.eu/guides/software-development/#r-pkg-description">DESCRIPTION file</ext-link>:</p>
        <p>
          <preformat preformat-type="code" xml:space="preserve">usethis::use_vignette("vignette-title")</preformat>
        </p>
      </sec>
      <sec sec-type="Dependencies">
        <title>Dependencies</title>
        <p>Dependencies are other packages your package relies on. Those need to be defined in the <ext-link ext-link-type="uri" xlink:href="#description_and_authorship">DESCRIPTION file</ext-link>, so that they are automatically installed when a user instals your package. You can use <ext-link ext-link-type="uri" xlink:href="https://usethis.r-lib.org/">usethis</ext-link> (<xref ref-type="bibr" rid="B13411687">Wickham et al. 2024</xref>) to add a dependency to your DESCRIPTION:</p>
        <p>
          <preformat preformat-type="code" xml:space="preserve">usethis::use_package("package-to-depend-on")</preformat>
        </p>
        <p>This will add a package to the <italic>Imports</italic> section of the <monospace>DESCRIPTION</monospace> file. The function also allows you to set it to <italic>Suggests</italic> instead, or to declare a minimum package version. Declaring a minimum version of a dependency isn’t usually necessary and should only be done as a continuous choice. For more guidance on the tradeoffs and decisions around dependencies, read <ext-link ext-link-type="uri" xlink:href="https://devguide.ropensci.org/pkg_building.html#pkgdependencies">the section on package dependencies</ext-link> in the rOpenSci Packages guide (<xref ref-type="bibr" rid="B13411659">rOpenSci et al. 2024</xref>).</p>
        <p>The difference between <italic>Imports</italic> and <italic>Depends</italic> is that while both are installed together with the package, <italic>Depends</italic> are also attached to the global environment, thus opening the door to all kinds of trouble. For example, if your package Depends on <ext-link ext-link-type="uri" xlink:href="https://dplyr.tidyverse.org/">dplyr</ext-link> (<xref ref-type="bibr" rid="B13411678">Wickham et al. 2023</xref>) it will overwrite the stats function <monospace>filter()</monospace> which is loaded by default, because <ext-link ext-link-type="uri" xlink:href="https://dplyr.tidyverse.org/">dplyr</ext-link> includes a <monospace>filter()</monospace> of its own. This kind of namespace conflict should be handled with caution, and avoided whenever possible. Code written by the user should behave as they expect, regardless of the order in which they load packages. Dependencies declared in <italic>Imports</italic> are not attached, thus avoiding this problem entirely. This principle and several other good practices are described in the <ext-link ext-link-type="uri" xlink:href="https://devguide.ropensci.org/pkg_building.html#pkgdependencies">section on package dependencies</ext-link> in the rOpenSci Packages guide (<xref ref-type="bibr" rid="B13411659">rOpenSci et al. 2024</xref>).</p>
        <p>When calling a function from a dependency, the dependency MUST be explicitly mentioned using <monospace>package::function()</monospace>. This makes it easier for collaborators to understand your code and it helps when searching for functions of a specific dependency:</p>
        <p>
          <preformat preformat-type="code" xml:space="preserve"># Bad
my_function &lt;- function(file) {read_csv(file)}
# Good
my_function &lt;- function(file) {readr::read_csv(file)}</preformat>
        </p>
        <p>For dependency recommendations, see the <ext-link ext-link-type="uri" xlink:href="#dependencies">dependencies section</ext-link> in the R section.</p>
      </sec>
    </sec>
    <sec sec-type="R analysis code">
      <title>R analysis code</title>
      <p>An important note is that most R analysis scripts could be wrapped as a package. This has many advantages:</p>
      <p><list list-type="bullet">
        <list-item>
          <p>Packages provide a better structure.</p>
        </list-item>
        <list-item>
          <p>Packages are easier to install and use.</p>
        </list-item>
        <list-item>
          <p>Packages allow for better documentation.</p>
        </list-item>
        <list-item>
          <p>It is much easier for others to reuse your work.</p>
        </list-item>
        <list-item>
          <p>There are a lot of tools that can help you make your work more reproducible that work better in the context of an R package.</p>
        </list-item>
        <list-item>
          <p>Within B-Cubed and the wider R community there are people ready to help, so if you’ve been waiting for an opportunity to learn: this is it.</p>
        </list-item>
      </list></p>
      <p>Creating an R package might seem like a huge step if you haven’t done it before, and while there is a learning curve, it really isn’t nearly as hard as it seems. All of this to say, please don’t be afraid to start an R package instead of an analysis script as part of your analysis workflow.</p>
      <p>For more information on packages, refer to the <ext-link ext-link-type="uri" xlink:href="#r_packages">R packages</ext-link> section.</p>
      <p>An R analysis script/project can be started from scratch via <ext-link ext-link-type="uri" xlink:href="https://usethis.r-lib.org/">usethis</ext-link> (<xref ref-type="bibr" rid="B13411687">Wickham et al. 2024c</xref>):</p>
      <p>
        <preformat preformat-type="code" xml:space="preserve">usethis::create_project("myprojectname")</preformat>
      </p>
      <p>This automates a number of steps:</p>
      <p><list list-type="bullet">
        <list-item>
          <p>It creates a new directory for your project to live in.</p>
        </list-item>
        <list-item>
          <p>It sets the <ext-link ext-link-type="uri" xlink:href="#rstudio_projects">RStudio active project</ext-link> to the new folder.</p>
        </list-item>
        <list-item>
          <p>It creates a new subdirectory R/ for R code to live in.</p>
        </list-item>
        <list-item>
          <p>It creates an <monospace>.Rproj</monospace> file.</p>
        </list-item>
        <list-item>
          <p>It adds <monospace>.Rproj.user</monospace> to <monospace>.gitignore</monospace>.</p>
        </list-item>
        <list-item>
          <p>And finally it opens your new project in a new RStudio window.</p>
        </list-item>
      </list></p>
      <p>As a next step you could initiate git:</p>
      <p>
        <preformat preformat-type="code" xml:space="preserve">usethis::use_git()</preformat>
      </p>
    </sec>
  </body>
  <back>
    <ack>
      <title>Acknowledgements</title>
      <p>We would like to thank the following people for their valuable insights, feedback and discussion in relation to this publication: Damiano Oldoni, Floris Vanderhaeghe, Laura Abraham, Maarten Trekels, Maëlle Salmon and Thierry Onkelinx.</p>
    </ack>
    <sec sec-type="Conflicts of interest">
      <title>Conflicts of interest</title>
      <p>No conflict of interest to declare</p>
      <p>Disclaimer: This article is (co-)authored by any of the Editors-in-Chief, Managing Editors or their deputies in this journal.</p>
    </sec>
    <ref-list>
      <title>References</title>
      <ref id="B13410881">
        <element-citation publication-type="book">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Adler</surname>
              <given-names>Joseph</given-names>
            </name>
          </person-group>
          <year>2012</year>
          <source>R in a Nutshell</source>
          <edition>2</edition>
          <publisher-name>O'Reilly</publisher-name>
          <uri>https://www.oreilly.com/library/view/r-in-a/9781449358204/</uri>
        </element-citation>
      </ref>
      <ref id="B13419472">
        <element-citation publication-type="software">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Bache</surname>
              <given-names>Stefan Milton</given-names>
            </name>
            <name name-style="western">
              <surname>Wickham</surname>
              <given-names>Hadley</given-names>
            </name>
          </person-group>
          <year>2022</year>
          <article-title>magrittr: A Forward-Pipe Operator for R</article-title>
          <uri>https://magrittr.tidyverse.org</uri>
        </element-citation>
      </ref>
      <ref id="B13419410">
        <element-citation publication-type="website">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Bartholomae</surname>
              <given-names>Daniel</given-names>
            </name>
          </person-group>
          <article-title>Moist code — Why code should not be completely DRY</article-title>
          <uri>https://startup-cto.medium.com/moist-code-why-code-should-not-be-completely-dry-1f06f2d31c31</uri>
          <date-in-citation content-type="access-date">2025-08-05T00:58:27+00:00</date-in-citation>
        </element-citation>
      </ref>
      <ref id="B13419123">
        <element-citation publication-type="book">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Bivand</surname>
              <given-names>Roger</given-names>
            </name>
            <name name-style="western">
              <surname>Pebesma</surname>
              <given-names>Edzer</given-names>
            </name>
            <name name-style="western">
              <surname>Gomez-Rubio</surname>
              <given-names>Virgilio</given-names>
            </name>
          </person-group>
          <year>2013</year>
          <source>Applied spatial data analysis with R</source>
          <edition>2</edition>
          <publisher-name>Springer</publisher-name>
          <publisher-loc>New York</publisher-loc>
          <uri>https://asdar-book.org/</uri>
          <isbn>978-1-4614-7618-4</isbn>
          <pub-id pub-id-type="doi">10.1007/978-1-4614-7618-4</pub-id>
        </element-citation>
      </ref>
      <ref id="B13419098">
        <element-citation publication-type="software">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Bivand</surname>
              <given-names>Roger</given-names>
            </name>
            <name name-style="western">
              <surname>Lewin-Koh</surname>
              <given-names>Nicholas</given-names>
            </name>
          </person-group>
          <year>2019</year>
          <article-title>maptools: Tools for Handling Spatial Objects</article-title>
          <uri>https://CRAN.R-project.org/package=maptools</uri>
          <comment content-type="Version">0.9-9</comment>
        </element-citation>
      </ref>
      <ref id="B13419088">
        <element-citation publication-type="software">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Bivand</surname>
              <given-names>Roger</given-names>
            </name>
            <name name-style="western">
              <surname>Rundel</surname>
              <given-names>Colin</given-names>
            </name>
          </person-group>
          <year>2020</year>
          <article-title>rgeos: Interface to Geometry Engine - Open Source ('GEOS')</article-title>
          <uri>https://CRAN.R-project.org/package=rgeos</uri>
          <comment content-type="Version">0.5-5</comment>
        </element-citation>
      </ref>
      <ref id="B13419078">
        <element-citation publication-type="software">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Bivand</surname>
              <given-names>Roger</given-names>
            </name>
            <name name-style="western">
              <surname>Keitt</surname>
              <given-names>Tim</given-names>
            </name>
            <name name-style="western">
              <surname>Rowlingson</surname>
              <given-names>Barry</given-names>
            </name>
          </person-group>
          <year>2022</year>
          <article-title>rgdal: Bindings for the 'Geospatial' Data Abstraction Library</article-title>
          <uri>https://CRAN.R-project.org/package=rgdal</uri>
          <comment content-type="Version">1.6.2</comment>
        </element-citation>
      </ref>
      <ref id="B13413096">
        <element-citation publication-type="website">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Bivand</surname>
              <given-names>Roger</given-names>
            </name>
            <name name-style="western">
              <surname>Pebesma</surname>
              <given-names>Edzer</given-names>
            </name>
          </person-group>
          <article-title>Progress on R-spatial evolution, Apr 2023</article-title>
          <uri>https://r-spatial.org/r/2023/04/10/evolution3.html</uri>
          <date-in-citation content-type="access-date">2025-08-01T00:58:27+00:00</date-in-citation>
        </element-citation>
      </ref>
      <ref id="B13419592">
        <element-citation publication-type="software">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Boettiger</surname>
              <given-names>Carl</given-names>
            </name>
            <name name-style="western">
              <surname>Salmon</surname>
              <given-names>Maëlle</given-names>
            </name>
          </person-group>
          <year>2025</year>
          <article-title>codemetar: Generate 'CodeMeta' Metadata for R Packages</article-title>
          <uri>https://docs.ropensci.org/codemetar</uri>
          <comment content-type="Version">0.3.6</comment>
        </element-citation>
      </ref>
      <ref id="B14458065">
        <element-citation publication-type="article">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Bradner</surname>
              <given-names>Scott</given-names>
            </name>
          </person-group>
          <year>1997</year>
          <article-title>Key words for use in RFCs to Indicate Requirement Levels</article-title>
          <source>Internet Engineering Task Force</source>
          <volume> Best Current Practice 14 </volume>
          <issue>2119</issue>
          <uri>https://www.rfc-editor.org/info/rfc2119</uri>
          <pub-id pub-id-type="doi">10.17487/RFC2119</pub-id>
        </element-citation>
      </ref>
      <ref id="B13419464">
        <element-citation publication-type="website">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Bryan</surname>
              <given-names>Jennifer</given-names>
            </name>
          </person-group>
          <article-title>Code Smells and Feels</article-title>
          <uri>rstd.io/code-smells</uri>
          <date-in-citation content-type="access-date">2025-08-05T00:58:27+00:00</date-in-citation>
        </element-citation>
      </ref>
      <ref id="B13419176">
        <element-citation publication-type="website">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Chamberlain</surname>
              <given-names>Scott</given-names>
            </name>
          </person-group>
          <article-title>Limiting dependencies in R package development</article-title>
          <uri>https://recology.info/2018/10/limiting-dependencies/</uri>
          <date-in-citation content-type="access-date">2025-08-05T00:58:27+00:00</date-in-citation>
        </element-citation>
      </ref>
      <ref id="B13419275">
        <element-citation publication-type="book">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Chamberlain</surname>
              <given-names>Scott</given-names>
            </name>
            <name name-style="western">
              <surname>Salmon</surname>
              <given-names>Maëlle</given-names>
            </name>
          </person-group>
          <year>2024</year>
          <source>HTTP testing in R</source>
          <publisher-name>rOpenSci Books</publisher-name>
          <uri>https://books.ropensci.org/http-testing/</uri>
        </element-citation>
      </ref>
      <ref id="B13412790">
        <element-citation publication-type="software">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Chamberlain</surname>
              <given-names>Scott</given-names>
            </name>
          </person-group>
          <year>2025</year>
          <article-title>crul: HTTP Client</article-title>
          <uri>https://docs.ropensci.org/crul/</uri>
          <comment content-type="Version">1.6.0</comment>
        </element-citation>
      </ref>
      <ref id="B13411918">
        <element-citation publication-type="website">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Cicirello</surname>
              <given-names>Vincent A.</given-names>
            </name>
          </person-group>
          <article-title>Badges - TL;DR for your repository's README</article-title>
          <uri>https://dev.to/cicirello/badges-tldr-for-your-repositorys-readme-3oo3</uri>
          <date-in-citation content-type="access-date">2025-08-01T00:58:27+00:00</date-in-citation>
        </element-citation>
      </ref>
      <ref id="B13412107">
        <element-citation publication-type="book">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Cooper</surname>
              <given-names>Natalie</given-names>
            </name>
            <name name-style="western">
              <surname>Hsing</surname>
              <given-names>Pen-Yuan</given-names>
            </name>
            <name name-style="western">
              <surname>Croucher</surname>
              <given-names>Mike</given-names>
            </name>
            <name name-style="western">
              <surname>Graham</surname>
              <given-names>Laura</given-names>
            </name>
            <name name-style="western">
              <surname>James</surname>
              <given-names>Tamora</given-names>
            </name>
            <name name-style="western">
              <surname>Krystall</surname>
              <given-names>Anna</given-names>
            </name>
            <name name-style="western">
              <surname>Michonneau</surname>
              <given-names>François</given-names>
            </name>
          </person-group>
          <year>2017</year>
          <source>Reproducable Code</source>
          <edition>1</edition>
          <publisher-name>British Ecological Society</publisher-name>
          <uri>https://www.britishecologicalsociety.org/wp-content/uploads/2019/06/BES-Guide-Reproducible-Code-2019.pdf</uri>
        </element-citation>
      </ref>
      <ref id="B13410873">
        <element-citation publication-type="book">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Crawley</surname>
              <given-names>Michael J.</given-names>
            </name>
          </person-group>
          <year>2012</year>
          <source>The R Book</source>
          <publisher-name>John Wiley &amp; Sons</publisher-name>
          <uri>https://onlinelibrary.wiley.com/doi/book/10.1002/9781118448908</uri>
          <isbn>9781118448908</isbn>
          <pub-id pub-id-type="doi">10.1002/9781118448908</pub-id>
        </element-citation>
      </ref>
      <ref id="B13411825">
        <element-citation publication-type="software">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Csárdi</surname>
              <given-names>Gábor</given-names>
            </name>
            <name name-style="western">
              <surname>Wickham</surname>
              <given-names>Hadley</given-names>
            </name>
            <name name-style="western">
              <surname>Müller</surname>
              <given-names>Kirill</given-names>
            </name>
            <name name-style="western">
              <surname>Brüggemann</surname>
              <given-names>Salim</given-names>
            </name>
            <name name-style="western">
              <surname>Software</surname>
              <given-names>Posit</given-names>
            </name>
          </person-group>
          <year>2025</year>
          <article-title><italic>cli</italic>: Helpers for Developing Command Line Interfaces</article-title>
          <uri>https://cli.r-lib.org</uri>
          <comment content-type="Version">3.6.3</comment>
        </element-citation>
      </ref>
      <ref id="B13411848">
        <element-citation publication-type="software">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Desmet</surname>
              <given-names>Peter</given-names>
            </name>
            <name name-style="western">
              <surname>Oldoni</surname>
              <given-names>Damiano</given-names>
            </name>
            <name name-style="western">
              <surname>Huybrechts</surname>
              <given-names>Pieter</given-names>
            </name>
            <name name-style="western">
              <surname>Govaert</surname>
              <given-names>Sanne</given-names>
            </name>
            <name name-style="western">
              <surname>(INBO)</surname>
              <given-names>Research Institute for Nature and Forest</given-names>
            </name>
          </person-group>
          <year>2025</year>
          <article-title>frictionless: Read and Write Frictionless Data Packages</article-title>
          <date-in-citation content-type="released">2025-05-23T00:58:27+00:00</date-in-citation>
          <pub-id pub-id-type="doi">10.32614/CRAN.package.frictionless</pub-id>
          <comment content-type="Version">1.2.1</comment>
        </element-citation>
      </ref>
      <ref id="B13419432">
        <element-citation publication-type="website">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Dodds</surname>
              <given-names>Kent C.</given-names>
            </name>
          </person-group>
          <article-title>AHA Programming</article-title>
          <uri>https://kentcdodds.com/blog/aha-programming</uri>
          <date-in-citation content-type="access-date">2025-08-05T00:58:27+00:00</date-in-citation>
        </element-citation>
      </ref>
      <ref id="B13412158">
        <element-citation publication-type="book">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Erdmann</surname>
              <given-names>Christopher</given-names>
            </name>
            <name name-style="western">
              <surname>Meyer</surname>
              <given-names>Michael F.</given-names>
            </name>
            <name name-style="western">
              <surname>Little</surname>
              <given-names>John R.</given-names>
            </name>
            <name name-style="western">
              <surname>Hondula</surname>
              <given-names>Kelly</given-names>
            </name>
            <name name-style="western">
              <surname>Stachelek</surname>
              <given-names>Jemma</given-names>
            </name>
            <name name-style="western">
              <surname>Oleksy</surname>
              <given-names>Isabella</given-names>
            </name>
            <name name-style="western">
              <surname>Brousil</surname>
              <given-names>Matthew R.</given-names>
            </name>
            <name name-style="western">
              <surname>Claborn</surname>
              <given-names>Kelly</given-names>
            </name>
            <name name-style="western">
              <surname>Mesman</surname>
              <given-names>Jorrit</given-names>
            </name>
            <name name-style="western">
              <surname>Dennis</surname>
              <given-names>Tim</given-names>
            </name>
          </person-group>
          <year>2021</year>
          <source>Guidance for AGU Authors: R Script(s)/Markdown</source>
          <publisher-name>Advancing Earth and Space Science</publisher-name>
          <uri>https://data.agu.org/resources/r-guidance-agu-authors</uri>
          <pub-id pub-id-type="doi">10.5281/zenodo.5647997</pub-id>
        </element-citation>
      </ref>
      <ref id="B14442501">
        <element-citation publication-type="website">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Estupinan-Suarez</surname>
              <given-names>Lina M.</given-names>
            </name>
            <name name-style="western">
              <surname>Quoss</surname>
              <given-names>Luise</given-names>
            </name>
            <name name-style="western">
              <surname>Langer</surname>
              <given-names>Christian</given-names>
            </name>
            <name name-style="western">
              <surname>Oceguera</surname>
              <given-names>Emmanuel</given-names>
            </name>
            <name name-style="western">
              <surname>Pereira</surname>
              <given-names>Henrique</given-names>
            </name>
          </person-group>
          <article-title>D3.3 FAIR data products and interoperability with the Essential Biodiversity Variables Data Portal</article-title>
          <uri>https://b-cubed.eu/storage/app/uploads/public/68e/4f8/3ae/68e4f83aecb88828604715.pdf</uri>
        </element-citation>
      </ref>
      <ref id="B13419520">
        <element-citation publication-type="software">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Ganz</surname>
              <given-names>Carl</given-names>
            </name>
            <name name-style="western">
              <surname>Csárdi</surname>
              <given-names>Gábor</given-names>
            </name>
            <name name-style="western">
              <surname>Hester</surname>
              <given-names>Jim</given-names>
            </name>
            <name name-style="western">
              <surname>Lewis</surname>
              <given-names>Molly</given-names>
            </name>
            <name name-style="western">
              <surname>Tatman</surname>
              <given-names>Rachael</given-names>
            </name>
            <name name-style="western">
              <surname>Posit Software</surname>
              <given-names>PBC</given-names>
            </name>
          </person-group>
          <year>2023</year>
          <article-title>available: Check if the Title of a Package is Available, Appropriate and Interesting</article-title>
          <uri>https://github.com/r-lib/available</uri>
          <comment content-type="Version">1.1.0</comment>
        </element-citation>
      </ref>
      <ref id="B14035559">
        <element-citation publication-type="software">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Govaert</surname>
              <given-names>Sanne</given-names>
            </name>
            <name name-style="western">
              <surname>Desmet</surname>
              <given-names>Peter</given-names>
            </name>
            <name name-style="western">
              <surname>Huybrechts</surname>
              <given-names>Pieter</given-names>
            </name>
            <name name-style="western">
              <surname>Langeraert</surname>
              <given-names>Ward</given-names>
            </name>
          </person-group>
          <year>2025</year>
          <article-title>b3doc: Tools for the B-Cubed Documentation Website</article-title>
          <publisher-name>EU Open Research Repository</publisher-name>
          <date-in-citation content-type="released">2025-08-20T00:58:27+00:00</date-in-citation>
          <pub-id pub-id-type="doi">10.5281/zenodo.15649519</pub-id>
          <comment content-type="Version">v0.2.0</comment>
        </element-citation>
      </ref>
      <ref id="B13411790">
        <element-citation publication-type="software">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Henry</surname>
              <given-names>Lionel</given-names>
            </name>
            <name name-style="western">
              <surname>Wickham</surname>
              <given-names>Hadley</given-names>
            </name>
          </person-group>
          <year>2023</year>
          <article-title><italic>lifecycle</italic>: Manage the Life Cycle of your Package Functions</article-title>
          <uri>https://lifecycle.r-lib.org/</uri>
          <comment content-type="Version">1.0.4</comment>
        </element-citation>
      </ref>
      <ref id="B13419283">
        <element-citation publication-type="software">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Henry</surname>
              <given-names>Lionel</given-names>
            </name>
            <name name-style="western">
              <surname>Pedersen</surname>
              <given-names>Thomas Lin</given-names>
            </name>
            <name name-style="western">
              <surname>Luciani</surname>
              <given-names>T Jake</given-names>
            </name>
            <name name-style="western">
              <surname>Decorde</surname>
              <given-names>Matthieu</given-names>
            </name>
            <name name-style="western">
              <surname>Lise</surname>
              <given-names>Vaudor</given-names>
            </name>
          </person-group>
          <year>2024</year>
          <article-title>vdiffr: Visual Regression Testing and Graphical Diffing</article-title>
          <uri>https://vdiffr.r-lib.org/</uri>
          <comment content-type="Version">1.0.8</comment>
        </element-citation>
      </ref>
      <ref id="B13411739">
        <element-citation publication-type="article">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Hernangómez</surname>
              <given-names>Diego</given-names>
            </name>
          </person-group>
          <year>2021</year>
          <article-title>cffr: Generate Citation File Format Metadata for R Packages.</article-title>
          <source>Journal of Open Source Software</source>
          <volume>6</volume>
          <issue>67</issue>
          <fpage>3900</fpage>
          <pub-id pub-id-type="doi">10.21105/joss.03900</pub-id>
        </element-citation>
      </ref>
      <ref id="B13419265">
        <element-citation publication-type="software">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Hester</surname>
              <given-names>Jim</given-names>
            </name>
          </person-group>
          <year>2023</year>
          <article-title>covr: Test Coverage for Packages</article-title>
          <uri>https://covr.r-lib.org</uri>
          <comment content-type="Version">3.6.4</comment>
        </element-citation>
      </ref>
      <ref id="B13419216">
        <element-citation publication-type="software">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Hester</surname>
              <given-names>Jim</given-names>
            </name>
            <name name-style="western">
              <surname>Angly</surname>
              <given-names>Florent</given-names>
            </name>
            <name name-style="western">
              <surname>Hyde</surname>
              <given-names>Russ</given-names>
            </name>
            <name name-style="western">
              <surname>Chirico</surname>
              <given-names>Michael</given-names>
            </name>
            <name name-style="western">
              <surname>Ren</surname>
              <given-names>Kun</given-names>
            </name>
            <name name-style="western">
              <surname>Rosenstock</surname>
              <given-names>Alexander</given-names>
            </name>
            <name name-style="western">
              <surname>Patil</surname>
              <given-names>Indrajeet</given-names>
            </name>
          </person-group>
          <year>2025</year>
          <article-title>lintr: A 'Linter' for R Code</article-title>
          <uri>https://lintr.r-lib.org</uri>
          <comment content-type="Version">3.2.0</comment>
        </element-citation>
      </ref>
      <ref id="B13413080">
        <element-citation publication-type="software">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Hijmans</surname>
              <given-names>Robert J.</given-names>
            </name>
          </person-group>
          <year>2025</year>
          <article-title>terra: Spatial Data Analysis</article-title>
          <uri>https://rspatial.org/</uri>
          <comment content-type="Version">1.8-61</comment>
        </element-citation>
      </ref>
      <ref id="B13419144">
        <element-citation publication-type="software">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Hijmans</surname>
              <given-names>Robert J.</given-names>
            </name>
          </person-group>
          <year>2025</year>
          <article-title>raster: Geographic Data Analysis and Modeling</article-title>
          <uri>10.32614/CRAN.package.raster</uri>
          <comment content-type="Version">3.6-32</comment>
        </element-citation>
      </ref>
      <ref id="B14442060">
        <element-citation publication-type="website">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Huybrechts</surname>
              <given-names>Pieter</given-names>
            </name>
            <name name-style="western">
              <surname>Trekels</surname>
              <given-names>Maarten</given-names>
            </name>
            <name name-style="western">
              <surname>Abraham</surname>
              <given-names>Laura</given-names>
            </name>
            <name name-style="western">
              <surname>Desmet</surname>
              <given-names>Peter</given-names>
            </name>
          </person-group>
          <article-title>D3.1 Quality requirements for software</article-title>
          <uri>https://purews.inbo.be/ws/portalfiles/portal/150763204/D3.1_2024_Quality_requirements_for_software.pdf</uri>
          <date-in-citation content-type="access-date">2025-08-31T00:58:27+00:00</date-in-citation>
        </element-citation>
      </ref>
      <ref id="B13419350">
        <element-citation publication-type="software">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Hyde</surname>
              <given-names>Russ</given-names>
            </name>
          </person-group>
          <year>2020</year>
          <article-title>dupree: Identify Duplicated R Code in a Project</article-title>
          <publisher-name>10.32614/CRAN.package.dupree</publisher-name>
          <uri>https://github.com/russHyde/dupree</uri>
          <comment content-type="Version">0.3.0</comment>
        </element-citation>
      </ref>
      <ref id="B13410942">
        <element-citation publication-type="book">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Khorikov</surname>
              <given-names>Vladimir</given-names>
            </name>
          </person-group>
          <year>2020</year>
          <source>Unit Testing Principles, Practices, and Patterns</source>
          <publisher-name>Manning</publisher-name>
          <size units="page">304</size>
          <uri>https://www.manning.com/books/unit-testing</uri>
          <isbn>9781617296277</isbn>
        </element-citation>
      </ref>
      <ref id="B13419440">
        <element-citation publication-type="website">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Khorikov</surname>
              <given-names>Vladimir</given-names>
            </name>
          </person-group>
          <article-title>DRY vs DAMP in Unit Tests</article-title>
          <uri>https://enterprisecraftsmanship.com/posts/dry-damp-unit-tests/</uri>
          <date-in-citation content-type="access-date">2025-08-05T00:58:27+00:00</date-in-citation>
        </element-citation>
      </ref>
      <ref id="B13411731">
        <element-citation publication-type="website">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>LaZerte</surname>
              <given-names>Steffi</given-names>
            </name>
          </person-group>
          <article-title>How to Cite R and R Packages</article-title>
          <uri>https://ropensci.org/blog/2021/11/16/how-to-cite-r-and-r-packages/</uri>
          <date-in-citation content-type="access-date">2025-08-01T00:58:27+00:00</date-in-citation>
        </element-citation>
      </ref>
      <ref id="B13419188">
        <element-citation publication-type="website">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Leek</surname>
              <given-names>Jeff</given-names>
            </name>
          </person-group>
          <article-title>How I decide when to trust an R package</article-title>
          <uri>https://simplystatistics.org/posts/2015-11-06-how-i-decide-when-to-trust-an-r-package/</uri>
          <date-in-citation content-type="access-date">2025-08-05T00:58:27+00:00</date-in-citation>
        </element-citation>
      </ref>
      <ref id="B13419238">
        <element-citation publication-type="website">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Lynch</surname>
              <given-names>Michael</given-names>
            </name>
          </person-group>
          <article-title>Why Good Developers Write Bad Unit Tests</article-title>
          <uri>https://mtlynch.io/good-developers-bad-tests/</uri>
          <date-in-citation content-type="access-date">2025-08-05T00:58:27+00:00</date-in-citation>
        </element-citation>
      </ref>
      <ref id="B13419205">
        <element-citation publication-type="software">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Müller</surname>
              <given-names>Kirill</given-names>
            </name>
            <name name-style="western">
              <surname>Walthert</surname>
              <given-names>Lorenz</given-names>
            </name>
          </person-group>
          <year>2024</year>
          <article-title>styler: Non-Invasive Pretty Printing of R Code</article-title>
          <uri>https://styler.r-lib.org</uri>
          <comment content-type="Version">1.10.3</comment>
        </element-citation>
      </ref>
      <ref id="B13413088">
        <element-citation publication-type="website">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Nowosad</surname>
              <given-names>Jakub</given-names>
            </name>
          </person-group>
          <article-title>Upcoming changes to popular R packages for spatial data: what you need to do</article-title>
          <uri>www.r-bloggers.com/2023/06/upcoming-changes-to-popular-r-packages-for-spatial-data-what-you-need-to-do/</uri>
          <date-in-citation content-type="access-date">2025-05-01T00:58:27+00:00</date-in-citation>
        </element-citation>
      </ref>
      <ref id="B13419456">
        <element-citation publication-type="website">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Oldoni</surname>
              <given-names>Damiano</given-names>
            </name>
          </person-group>
          <article-title>Functions in R</article-title>
          <uri>https://coding-club.inbo.be/sessions/20230926_functions_in_r.html#1</uri>
          <date-in-citation content-type="access-date">2025-08-05T00:58:27+00:00</date-in-citation>
        </element-citation>
      </ref>
      <ref id="B13419330">
        <element-citation publication-type="article">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Onkelinx</surname>
              <given-names>Thierry</given-names>
            </name>
          </person-group>
          <year>2025</year>
          <article-title>checklist: A Thorough and Strict Set of Checks for R Packages and Source Code. Version 0.4.2</article-title>
          <source>INBO</source>
          <uri>https://inbo.github.io/checklist/</uri>
          <pub-id pub-id-type="doi">10.5281/zenodo.4028303</pub-id>
        </element-citation>
      </ref>
      <ref id="B13412767">
        <element-citation publication-type="software">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Ooms</surname>
              <given-names>Jeroen</given-names>
            </name>
          </person-group>
          <year>2025</year>
          <article-title><italic>curl</italic>: A Modern and Flexible Web Client for R</article-title>
          <uri>https://jeroen.r-universe.dev/curl</uri>
          <comment content-type="Version">6.99999</comment>
        </element-citation>
      </ref>
      <ref id="B13412814">
        <element-citation publication-type="software">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Ooms</surname>
              <given-names>Jeroen</given-names>
            </name>
          </person-group>
          <year>2025</year>
          <article-title>jsonlite: A Simple and Robust JSON Parser and Generator for R</article-title>
          <uri>https://arxiv.org/abs/1403.2805</uri>
          <comment content-type="Version">2.0.0</comment>
        </element-citation>
      </ref>
      <ref id="B13419322">
        <element-citation publication-type="software">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Padgham</surname>
              <given-names>Mark</given-names>
            </name>
            <name name-style="western">
              <surname>Salmon</surname>
              <given-names>Maëlle</given-names>
            </name>
            <name name-style="western">
              <surname>Wujciak-Jens</surname>
              <given-names>Jacob</given-names>
            </name>
            <name name-style="western">
              <surname>Kim</surname>
              <given-names>Eunseop</given-names>
            </name>
          </person-group>
          <year>2025</year>
          <article-title>pkgcheck: rOpenSci Package Checks</article-title>
          <uri>https://docs.ropensci.org/pkgcheck/</uri>
          <comment content-type="Version">0.1.2.207</comment>
        </element-citation>
      </ref>
      <ref id="B13419339">
        <element-citation publication-type="software">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Padgham</surname>
              <given-names>Mark</given-names>
            </name>
            <name name-style="western">
              <surname>Marks</surname>
              <given-names>Karina</given-names>
            </name>
            <name name-style="western">
              <surname>Bortoli</surname>
              <given-names>Daniel de</given-names>
            </name>
            <name name-style="western">
              <surname>Csardi</surname>
              <given-names>Gabor</given-names>
            </name>
            <name name-style="western">
              <surname>Frick</surname>
              <given-names>Hannah</given-names>
            </name>
            <name name-style="western">
              <surname>Jones</surname>
              <given-names>Owen</given-names>
            </name>
            <name name-style="western">
              <surname>Alexander</surname>
              <given-names>Hannah</given-names>
            </name>
          </person-group>
          <year>2025</year>
          <article-title>goodpractice: Advice on R Package Building</article-title>
          <uri>https://github.com/ropensci-review-tools/goodpractice</uri>
          <comment content-type="Version">1.0.5</comment>
        </element-citation>
      </ref>
      <ref id="B13419114">
        <element-citation publication-type="article">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Pebesma</surname>
            </name>
            <name name-style="western">
              <surname>Bivand</surname>
            </name>
          </person-group>
          <year>2005</year>
          <article-title>Classes and methods for spatial data in R</article-title>
          <source>R News</source>
          <volume>5</volume>
          <issue>2</issue>
          <fpage>9</fpage>
          <lpage>13</lpage>
          <uri>https://CRAN.R-project.org/doc/Rnews/</uri>
        </element-citation>
      </ref>
      <ref id="B13413054">
        <element-citation publication-type="article">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Pebesma</surname>
              <given-names>Edzer</given-names>
            </name>
          </person-group>
          <year>2018</year>
          <article-title>Simple Features for R: Standardized Support for Spatial Vector Data</article-title>
          <source>The R Journal</source>
          <volume>10</volume>
          <issue>1</issue>
          <fpage>439</fpage>
          <lpage>446</lpage>
          <pub-id pub-id-type="doi">10.32614/RJ-2018-009</pub-id>
        </element-citation>
      </ref>
      <ref id="B13413104">
        <element-citation publication-type="website">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Pebesma</surname>
              <given-names>Edzer</given-names>
            </name>
            <name name-style="western">
              <surname>Bivand</surname>
              <given-names>Roger</given-names>
            </name>
          </person-group>
          <article-title>R-spatial evolution: retirement of rgdal, rgeos and maptools</article-title>
          <uri>https://r-spatial.org/r/2022/04/12/evolution.html</uri>
          <date-in-citation content-type="access-date">2025-08-01T00:58:27+00:00</date-in-citation>
        </element-citation>
      </ref>
      <ref id="B13413046">
        <element-citation publication-type="book">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Pebesma</surname>
              <given-names>Edzer</given-names>
            </name>
            <name name-style="western">
              <surname>Bivand</surname>
              <given-names>Roger</given-names>
            </name>
          </person-group>
          <year>2023</year>
          <source>Spatial Data Science: With applications in R</source>
          <publisher-name>Chapman and Hall/CRC</publisher-name>
          <uri>https://r-spatial.org/book/</uri>
          <pub-id pub-id-type="doi">10.1201/9780429459016</pub-id>
        </element-citation>
      </ref>
      <ref id="B13413063">
        <element-citation publication-type="software">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Pebesma</surname>
              <given-names>Edzer</given-names>
            </name>
          </person-group>
          <year>2025</year>
          <article-title>sf: Simple Features for R</article-title>
          <publisher-name>10.32614/CRAN.package.sf</publisher-name>
          <uri>https://r-spatial.github.io/sf/</uri>
          <comment content-type="Version">1.0-21</comment>
        </element-citation>
      </ref>
      <ref id="B13419134">
        <element-citation publication-type="software">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Pebesma</surname>
              <given-names>Edzer</given-names>
            </name>
            <name name-style="western">
              <surname>Bivand</surname>
              <given-names>Roger</given-names>
            </name>
          </person-group>
          <year>2025</year>
          <article-title>sp: Classes and Methods for Spatial Data</article-title>
          <uri>https://edzer.github.io/sp/</uri>
          <comment content-type="Version">2.2-0</comment>
        </element-citation>
      </ref>
      <ref id="B13419196">
        <element-citation publication-type="website">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Pedersen</surname>
              <given-names>Thomas Lin</given-names>
            </name>
          </person-group>
          <article-title>Playing on the same team as your dependency</article-title>
          <uri>https://www.tidyverse.org/blog/2022/09/playing-on-the-same-team-as-your-dependecy/</uri>
          <date-in-citation content-type="access-date">2025-08-05T00:58:27+00:00</date-in-citation>
        </element-citation>
      </ref>
      <ref id="B13419385">
        <element-citation publication-type="website">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Peng</surname>
              <given-names>Roger</given-names>
            </name>
          </person-group>
          <article-title>Overview and History of R</article-title>
          <uri>https://www.youtube.com/watch?v=STihTnVSZnI</uri>
          <date-in-citation content-type="access-date">2025-08-05T00:58:27+00:00</date-in-citation>
        </element-citation>
      </ref>
      <ref id="B13419394">
        <element-citation publication-type="website">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Peng</surname>
              <given-names>Roger</given-names>
            </name>
          </person-group>
          <article-title>Introduction to the R Language: Functions</article-title>
          <uri>https://rdpeng.github.io/Biostat776/lecture-functions.html</uri>
          <date-in-citation content-type="access-date">2025-08-05T00:58:27+00:00</date-in-citation>
        </element-citation>
      </ref>
      <ref id="B13419402">
        <element-citation publication-type="website">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Peng</surname>
              <given-names>Roger</given-names>
            </name>
          </person-group>
          <article-title>Introduction to the R Language: Functions (presentation)</article-title>
          <uri>https://www.stat.berkeley.edu/~statcur/Workshop2/Presentations/functions.pdf</uri>
          <date-in-citation content-type="access-date">2025-08-05T00:58:27+00:00</date-in-citation>
        </element-citation>
      </ref>
      <ref id="B13411756">
        <element-citation publication-type="software">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Team</surname>
              <given-names>R Core</given-names>
            </name>
            <name name-style="western">
              <surname>DebRoy</surname>
              <given-names>Saikat</given-names>
            </name>
            <name name-style="western">
              <surname>Trapletti</surname>
              <given-names>Adrian</given-names>
            </name>
          </person-group>
          <year>2025</year>
          <article-title>Writing R Extensions</article-title>
          <date-in-citation content-type="released">2025-06-13T00:58:27+00:00</date-in-citation>
          <uri>https://cran.rstudio.com/doc/manuals/r-release/R-exts.html</uri>
          <comment content-type="Version">4.5.1</comment>
        </element-citation>
      </ref>
      <ref id="B13411910">
        <element-citation publication-type="book">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Reitz</surname>
              <given-names>Kenneth</given-names>
            </name>
            <name name-style="western">
              <surname>Schlusser</surname>
              <given-names>Tanya</given-names>
            </name>
          </person-group>
          <year>2016</year>
          <source>The Hitchhiker's Guide to Python: Best Practices for Development</source>
          <edition>1</edition>
          <publisher-name>O'Reilly</publisher-name>
          <size units="page">336</size>
          <isbn>978-1491933176</isbn>
        </element-citation>
      </ref>
      <ref id="B13411772">
        <element-citation publication-type="website">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Richardson</surname>
              <given-names>Neal</given-names>
            </name>
          </person-group>
          <article-title>Getting Down with pkgdown</article-title>
          <uri>https://enpiar.com/2017/11/21/getting-down-with-pkgdown/</uri>
          <date-in-citation content-type="access-date">2025-08-01T00:58:27+00:00</date-in-citation>
        </element-citation>
      </ref>
      <ref id="B13411659">
        <element-citation publication-type="software">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>rOpenSci</surname>
            </name>
            <name name-style="western">
              <surname>Anderson</surname>
              <given-names>Brooke</given-names>
            </name>
            <name name-style="western">
              <surname>Chamberlain</surname>
              <given-names>Scott</given-names>
            </name>
            <name name-style="western">
              <surname>DeCicco</surname>
              <given-names>Laura</given-names>
            </name>
            <name name-style="western">
              <surname>Gustavsen</surname>
              <given-names>Julia</given-names>
            </name>
            <name name-style="western">
              <surname>Krystalli</surname>
              <given-names>Anna</given-names>
            </name>
            <name name-style="western">
              <surname>Lepore</surname>
              <given-names>Mauro</given-names>
            </name>
            <name name-style="western">
              <surname>Mullen</surname>
              <given-names>Lincoln</given-names>
            </name>
            <name name-style="western">
              <surname>Ram</surname>
              <given-names>Karthik</given-names>
            </name>
            <name name-style="western">
              <surname>Ross</surname>
              <given-names>Noam</given-names>
            </name>
            <name name-style="western">
              <surname>Salmon</surname>
              <given-names>Maëlle</given-names>
            </name>
            <name name-style="western">
              <surname>Vidoni</surname>
              <given-names>Melina</given-names>
            </name>
            <name name-style="western">
              <surname>Riederer</surname>
              <given-names>Emily</given-names>
            </name>
            <name name-style="western">
              <surname>Sparks</surname>
              <given-names>Adam</given-names>
            </name>
            <name name-style="western">
              <surname>Hollister</surname>
              <given-names>Jeff</given-names>
            </name>
          </person-group>
          <year>2024</year>
          <article-title>rOpenSci Packages: Development, Maintenance, and Peer Review</article-title>
          <pub-id pub-id-type="doi">10.5281/zenodo.10797633</pub-id>
        </element-citation>
      </ref>
      <ref id="B13411764">
        <element-citation publication-type="website">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Salmon</surname>
              <given-names>Maëlle</given-names>
            </name>
          </person-group>
          <article-title>Distinguish yourself in CRAN person() with ORCID</article-title>
          <uri>https://ropensci.org/blog/2018/10/08/orcid/</uri>
          <date-in-citation content-type="access-date">2025-08-01T00:58:27+00:00</date-in-citation>
        </element-citation>
      </ref>
      <ref id="B13410893">
        <element-citation publication-type="article">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Sandve</surname>
              <given-names>Geir Kjetil</given-names>
            </name>
            <name name-style="western">
              <surname>Nekrutenko</surname>
              <given-names>Anton</given-names>
            </name>
            <name name-style="western">
              <surname>Taylor</surname>
              <given-names>James</given-names>
            </name>
            <name name-style="western">
              <surname>Hovig</surname>
              <given-names>Eivind</given-names>
            </name>
          </person-group>
          <year>2013</year>
          <article-title>Ten Simple Rules for Reproducible Computational Research</article-title>
          <source>PLoS Computational Biology</source>
          <volume>9</volume>
          <issue>10</issue>
          <pub-id pub-id-type="doi">10.1371/journal.pcbi.1003285</pub-id>
        </element-citation>
      </ref>
      <ref id="B13410906">
        <element-citation publication-type="article">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Stoudt</surname>
              <given-names>Sara</given-names>
            </name>
            <name name-style="western">
              <surname>Vásquez</surname>
              <given-names>Váleri N.</given-names>
            </name>
            <name name-style="western">
              <surname>Martinez</surname>
              <given-names>Ciera C.</given-names>
            </name>
          </person-group>
          <year>2021</year>
          <article-title>Principles for data analysis workflows</article-title>
          <source>PLOS Computational Biology</source>
          <volume>17</volume>
          <issue>3</issue>
          <pub-id pub-id-type="doi">10.1371/journal.pcbi.1008770</pub-id>
        </element-citation>
      </ref>
      <ref id="B13419228">
        <element-citation publication-type="website">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>team</surname>
              <given-names>The tidyverse</given-names>
            </name>
            <name name-style="western">
              <surname>Wickham</surname>
              <given-names>Hadley</given-names>
            </name>
          </person-group>
          <article-title>Tidyverse style guide</article-title>
          <uri>https://style.tidyverse.org/</uri>
          <date-in-citation content-type="access-date">2025-08-05T00:58:27+00:00</date-in-citation>
        </element-citation>
      </ref>
      <ref id="B13419576">
        <element-citation publication-type="website">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Tierney</surname>
              <given-names>Nick</given-names>
            </name>
          </person-group>
          <article-title>Naming Things</article-title>
          <uri>https://www.njtierney.com/post/2018/06/20/naming-things/</uri>
          <date-in-citation content-type="access-date">2025-08-05T00:58:27+00:00</date-in-citation>
        </element-citation>
      </ref>
      <ref id="B13419367">
        <element-citation publication-type="website">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Tierney</surname>
              <given-names>Nick</given-names>
            </name>
          </person-group>
          <article-title>How to Get Good with R? </article-title>
          <uri>https://www.njtierney.com/post/2023/11/10/how-to-get-good-with-r/</uri>
          <date-in-citation content-type="access-date">2025-08-05T00:58:27+00:00</date-in-citation>
        </element-citation>
      </ref>
      <ref id="B13411986">
        <element-citation publication-type="website">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Vanderhaeghe</surname>
              <given-names>Floris</given-names>
            </name>
          </person-group>
          <article-title>Set up Zenodo - GitHub integration</article-title>
          <uri>https://tutorials.inbo.be/tutorials/git_zenodo/</uri>
          <date-in-citation content-type="access-date">2025-08-01T00:58:27+00:00</date-in-citation>
        </element-citation>
      </ref>
      <ref id="B13411970">
        <element-citation publication-type="website">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Vaughan</surname>
              <given-names>Davis</given-names>
            </name>
          </person-group>
          <article-title>Tidyteam code review principles</article-title>
          <uri>https://code-review.tidyverse.org/</uri>
          <date-in-citation content-type="access-date">2025-08-01T00:58:27+00:00</date-in-citation>
        </element-citation>
      </ref>
      <ref id="B13412126">
        <element-citation publication-type="book">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Vrouwenvelder</surname>
              <given-names>Kristina</given-names>
            </name>
            <name name-style="western">
              <surname>Hanson</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Sedora</surname>
              <given-names>B</given-names>
            </name>
          </person-group>
          <year>2024</year>
          <source>Lesson Materials: Introduction to Open Science</source>
          <publisher-name>Advancing Earth and Space Science</publisher-name>
          <uri>https://data.agu.org/resources/introduction-to-open-science-agu</uri>
          <pub-id pub-id-type="doi">10.5281/zenodo.10957625</pub-id>
        </element-citation>
      </ref>
      <ref id="B13411978">
        <element-citation publication-type="website">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Weigel</surname>
              <given-names>Bekah Hawrot</given-names>
            </name>
          </person-group>
          <article-title>How to Write a Good Issue: Tips for Effective Communication in Open Source</article-title>
          <uri>https://dev.to/opensauced/how-to-write-a-good-issue-tips-for-effective-communication-in-open-source-5443</uri>
          <date-in-citation content-type="access-date">2025-08-01T00:58:27+00:00</date-in-citation>
        </element-citation>
      </ref>
      <ref id="B13419247">
        <element-citation publication-type="article">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Wickham</surname>
              <given-names>Hadley</given-names>
            </name>
          </person-group>
          <year>2011</year>
          <article-title>testthat: Get Started with Testing</article-title>
          <source>The R Journal</source>
          <volume>3</volume>
          <fpage>5</fpage>
          <lpage>10</lpage>
          <uri>https://journal.r-project.org/archive/2011-1/RJournal_2011-1_Wickham.pdf</uri>
        </element-citation>
      </ref>
      <ref id="B13411705">
        <element-citation publication-type="book">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Wickham</surname>
              <given-names>Hadley</given-names>
            </name>
            <name name-style="western">
              <surname>Bryan</surname>
              <given-names>Jennifer</given-names>
            </name>
          </person-group>
          <year>2015</year>
          <source>R Packages</source>
          <edition>2</edition>
          <publisher-name>O'Reilly</publisher-name>
          <size units="page">202</size>
          <uri>https://r-pkgs.org/</uri>
        </element-citation>
      </ref>
      <ref id="B13419292">
        <element-citation publication-type="book">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Wickham</surname>
              <given-names>Hadley</given-names>
            </name>
          </person-group>
          <year>2016</year>
          <source>ggplot2: Elegant Graphics for Data Analysis</source>
          <publisher-name>Springer</publisher-name>
          <publisher-loc>New York</publisher-loc>
          <uri>https://ggplot2.tidyverse.org</uri>
          <isbn>978-3-319-24277-4</isbn>
        </element-citation>
      </ref>
      <ref id="B13411834">
        <element-citation publication-type="software">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Wickham</surname>
              <given-names>Hadley</given-names>
            </name>
          </person-group>
          <year>2019</year>
          <article-title>assertthat: Easy Pre and Post Assertions</article-title>
          <date-in-citation content-type="released">2019-03-21T00:58:27+00:00</date-in-citation>
          <pub-id pub-id-type="doi">10.32614/CRAN.package.assertthat</pub-id>
        </element-citation>
      </ref>
      <ref id="B13419493">
        <element-citation publication-type="book">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Wickham</surname>
              <given-names>Hadley</given-names>
            </name>
          </person-group>
          <year>2019</year>
          <source>Advanced R</source>
          <publisher-name>CRC</publisher-name>
          <size units="page">588</size>
          <uri>https://adv-r.hadley.nz/</uri>
          <isbn>0815384572</isbn>
        </element-citation>
      </ref>
      <ref id="B13411798">
        <element-citation publication-type="software">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Wickham</surname>
              <given-names>Hadley</given-names>
            </name>
            <name name-style="western">
              <surname>Hester</surname>
              <given-names>Jim</given-names>
            </name>
            <name name-style="western">
              <surname>Chang</surname>
              <given-names>Winston</given-names>
            </name>
            <name name-style="western">
              <surname>Bryan</surname>
              <given-names>Jennifer</given-names>
            </name>
            <name name-style="western">
              <surname>RStudio</surname>
            </name>
          </person-group>
          <year>2022</year>
          <article-title><italic>devtools</italic>: Tools to Make Developing R Packages Easier</article-title>
          <uri>https://devtools.r-lib.org/</uri>
          <comment content-type="Version">2.4.5</comment>
        </element-citation>
      </ref>
      <ref id="B13419480">
        <element-citation publication-type="software">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Wickham</surname>
              <given-names>Hadley</given-names>
            </name>
          </person-group>
          <year>2023</year>
          <article-title>forcats: Tools for Working with Categorical Variables (Factors)</article-title>
          <uri>https://forcats.tidyverse.org/</uri>
          <comment content-type="Version">1.0.0</comment>
        </element-citation>
      </ref>
      <ref id="B13412134">
        <element-citation publication-type="book">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Wickham</surname>
              <given-names>Hadley</given-names>
            </name>
            <name name-style="western">
              <surname>Çetinkaya-Rundel</surname>
              <given-names>Mine</given-names>
            </name>
            <name name-style="western">
              <surname>Grolemund</surname>
              <given-names>Garrett</given-names>
            </name>
          </person-group>
          <year>2023</year>
          <source>R for Data Science</source>
          <edition>2</edition>
          <publisher-name>‎ O'Reilly</publisher-name>
          <size units="page">576</size>
          <uri>https://r4ds.hadley.nz/</uri>
          <isbn>978-1492097402</isbn>
        </element-citation>
      </ref>
      <ref id="B13411678">
        <element-citation publication-type="software">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Wickham</surname>
              <given-names>Hadley</given-names>
            </name>
            <name name-style="western">
              <surname>François</surname>
              <given-names>Romain</given-names>
            </name>
            <name name-style="western">
              <surname>Henry</surname>
              <given-names>Lionel</given-names>
            </name>
            <name name-style="western">
              <surname>Müller</surname>
              <given-names>Kirill</given-names>
            </name>
            <name name-style="western">
              <surname>Vaughan</surname>
              <given-names>Davis</given-names>
            </name>
          </person-group>
          <year>2023</year>
          <article-title>dplyr: A Grammar of Data Manipulation</article-title>
          <publisher-name>CRAN</publisher-name>
          <date-in-citation content-type="released">2023-11-17T00:58:27+00:00</date-in-citation>
          <pub-id pub-id-type="doi">10.32614/CRAN.package.dplyr</pub-id>
          <comment content-type="Version">1.1.4</comment>
        </element-citation>
      </ref>
      <ref id="B13419155">
        <element-citation publication-type="software">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Wickham</surname>
              <given-names>Hadley</given-names>
            </name>
            <name name-style="western">
              <surname>Hester</surname>
              <given-names>Jim</given-names>
            </name>
            <name name-style="western">
              <surname>Bryan</surname>
              <given-names>Jennifer</given-names>
            </name>
          </person-group>
          <year>2024</year>
          <article-title><italic>readr</italic>: Read Rectangular Text Data</article-title>
          <uri>https://readr.tidyverse.org</uri>
          <comment content-type="Version">2.1.5</comment>
        </element-citation>
      </ref>
      <ref id="B13411696">
        <element-citation publication-type="software">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Wickham</surname>
              <given-names>Hadley</given-names>
            </name>
            <name name-style="western">
              <surname>Danenberg</surname>
              <given-names>Peter</given-names>
            </name>
            <name name-style="western">
              <surname>Csárdi</surname>
              <given-names>Gábor</given-names>
            </name>
            <name name-style="western">
              <surname>Eugster</surname>
              <given-names>Manuel</given-names>
            </name>
          </person-group>
          <year>2024</year>
          <article-title>roxygen2: In-Line Documentation for R</article-title>
          <uri>https://roxygen2.r-lib.org/</uri>
          <comment content-type="Version">7.3.2</comment>
        </element-citation>
      </ref>
      <ref id="B13411687">
        <element-citation publication-type="software">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Wickham</surname>
              <given-names>Hadley</given-names>
            </name>
            <name name-style="western">
              <surname>Bryan</surname>
              <given-names>Jennifer</given-names>
            </name>
            <name name-style="western">
              <surname>Barrett</surname>
              <given-names>Malcolm</given-names>
            </name>
            <name name-style="western">
              <surname>Teucher</surname>
              <given-names>Andy</given-names>
            </name>
            <name name-style="western">
              <surname>Software</surname>
              <given-names>Posit</given-names>
            </name>
          </person-group>
          <year>2024</year>
          <article-title>usethis: Automate Package and Project Setup</article-title>
          <date-in-citation content-type="released">2024-11-26T00:58:27+00:00</date-in-citation>
          <pub-id pub-id-type="doi">10.32614/CRAN.package.usethis</pub-id>
          <comment content-type="Version">3.1.0</comment>
        </element-citation>
      </ref>
      <ref id="B13412743">
        <element-citation publication-type="software">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Wickham</surname>
              <given-names>Hadley</given-names>
            </name>
          </person-group>
          <year>2025</year>
          <article-title>httr2: Perform HTTP Requests and Process the Responses</article-title>
          <uri>https://httr2.r-lib.org</uri>
          <comment content-type="Version">1.2.1</comment>
        </element-citation>
      </ref>
      <ref id="B13419256">
        <element-citation publication-type="software">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Wickham</surname>
              <given-names>Hadley</given-names>
            </name>
          </person-group>
          <year>2025</year>
          <article-title>testthat: Unit Testing for R</article-title>
          <uri>10.32614/CRAN.package.testthat</uri>
          <comment content-type="Version">3.2.3</comment>
        </element-citation>
      </ref>
      <ref id="B13419376">
        <element-citation publication-type="website">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Wickham</surname>
              <given-names>Hadley</given-names>
            </name>
          </person-group>
          <article-title>Tidy design principles</article-title>
          <uri>https://design.tidyverse.org/</uri>
          <date-in-citation content-type="access-date">2025-08-05T00:58:27+00:00</date-in-citation>
        </element-citation>
      </ref>
      <ref id="B13413005">
        <element-citation publication-type="software">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Wickham</surname>
              <given-names>Hadley</given-names>
            </name>
            <name name-style="western">
              <surname>Hester</surname>
              <given-names>Jim</given-names>
            </name>
            <name name-style="western">
              <surname>Ooms</surname>
              <given-names>Jeroen</given-names>
            </name>
          </person-group>
          <year>2025</year>
          <article-title>xml2: Parse XML</article-title>
          <uri>https://xml2.r-lib.org</uri>
          <comment content-type="Version">1.3.8</comment>
        </element-citation>
      </ref>
      <ref id="B13411780">
        <element-citation publication-type="software">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Wickham</surname>
              <given-names>Hadley</given-names>
            </name>
            <name name-style="western">
              <surname>Hesselberth</surname>
              <given-names>Jay</given-names>
            </name>
            <name name-style="western">
              <surname>Salmon</surname>
              <given-names>Maëlle</given-names>
            </name>
            <name name-style="western">
              <surname>Roy</surname>
              <given-names>Olivier</given-names>
            </name>
            <name name-style="western">
              <surname>Brüggemann</surname>
              <given-names>Salim</given-names>
            </name>
            <name name-style="western">
              <surname>Software</surname>
              <given-names>Posit</given-names>
            </name>
          </person-group>
          <year>2025</year>
          <article-title>
            <italic>pkgdown: Make Static HTML Documentation for a Package</italic>
          </article-title>
          <publisher-name>10.32614/CRAN.package.pkgdown</publisher-name>
          <date-in-citation content-type="released">2025-05-25T00:58:27+00:00</date-in-citation>
          <uri>https://pkgdown.r-lib.org/</uri>
          <comment content-type="Version">2.1.3</comment>
        </element-citation>
      </ref>
      <ref id="B13419301">
        <element-citation publication-type="software">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Wickham</surname>
              <given-names>Hadley</given-names>
            </name>
            <name name-style="western">
              <surname>Chang</surname>
              <given-names>Winston</given-names>
            </name>
            <name name-style="western">
              <surname>Henry</surname>
              <given-names>Lionel</given-names>
            </name>
            <name name-style="western">
              <surname>Pedersen</surname>
              <given-names>Thomas Lin</given-names>
            </name>
            <name name-style="western">
              <surname>Takahashi</surname>
              <given-names>Kohske</given-names>
            </name>
            <name name-style="western">
              <surname>Wilke</surname>
              <given-names>Claus</given-names>
            </name>
            <name name-style="western">
              <surname>Woo</surname>
              <given-names>Kara</given-names>
            </name>
            <name name-style="western">
              <surname>Yutani</surname>
              <given-names>Hiroaki</given-names>
            </name>
            <name name-style="western">
              <surname>Dunnington</surname>
              <given-names>Dewey</given-names>
            </name>
            <name name-style="western">
              <surname>Brand</surname>
              <given-names>Teun van den</given-names>
            </name>
          </person-group>
          <year>2025</year>
          <article-title>ggplot2: Create Elegant Data Visualisations Using the Grammar of Graphics</article-title>
          <uri>10.32614/CRAN.package.ggplot2</uri>
          <comment content-type="Version">3.5.2</comment>
        </element-citation>
      </ref>
      <ref id="B13419584">
        <element-citation publication-type="website">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Xie</surname>
              <given-names>Yihui</given-names>
            </name>
          </person-group>
          <article-title>One Little Thing To Consider When Naming Things (Software)</article-title>
          <uri>https://yihui.org/en/2017/12/typing-names/</uri>
          <date-in-citation content-type="access-date">2025-08-05T00:58:27+00:00</date-in-citation>
        </element-citation>
      </ref>
      <ref id="B13412150">
        <element-citation publication-type="book">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Xie</surname>
              <given-names>Yihui</given-names>
            </name>
            <name name-style="western">
              <surname>Allaire</surname>
              <given-names>J. J.</given-names>
            </name>
            <name name-style="western">
              <surname>Grolemund</surname>
              <given-names>Garrett</given-names>
            </name>
          </person-group>
          <year>2023</year>
          <source>R Markdown: The Definitive Guide</source>
          <edition>1</edition>
          <publisher-name>Chapman and Hall/CRC</publisher-name>
          <publisher-loc>New York</publisher-loc>
          <size units="page">338</size>
          <uri>https://bookdown.org/yihui/rmarkdown/</uri>
          <isbn>9781138359444</isbn>
          <pub-id pub-id-type="doi">10.1201/9781138359444</pub-id>
        </element-citation>
      </ref>
      <ref id="B13411994">
        <element-citation publication-type="software">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Zimmerman</surname>
              <given-names>Naupaka</given-names>
            </name>
            <name name-style="western">
              <surname>Wilson</surname>
              <given-names>Greg</given-names>
            </name>
            <name name-style="western">
              <surname>Silva</surname>
              <given-names>Raniere</given-names>
            </name>
            <name name-style="western">
              <surname>Ritchie</surname>
              <given-names>Scott</given-names>
            </name>
            <name name-style="western">
              <surname>Michonneau</surname>
              <given-names>François</given-names>
            </name>
            <name name-style="western">
              <surname>Oliver</surname>
              <given-names>Jeffrey</given-names>
            </name>
            <name name-style="western">
              <surname>Dashnow</surname>
              <given-names>Harriet</given-names>
            </name>
            <name name-style="western">
              <surname>Boughton</surname>
              <given-names>Andrew</given-names>
            </name>
            <name name-style="western">
              <surname>Teucher</surname>
              <given-names>Andy</given-names>
            </name>
            <name name-style="western">
              <surname>Mawdsley</surname>
              <given-names>David</given-names>
            </name>
            <name name-style="western">
              <surname>MacDonald</surname>
              <given-names>Andrew</given-names>
            </name>
            <name name-style="western">
              <surname>Rice</surname>
              <given-names>Timothy</given-names>
            </name>
            <name name-style="western">
              <surname>Emonet</surname>
              <given-names>Rémi</given-names>
            </name>
            <name name-style="western">
              <surname>Daigle</surname>
              <given-names>Remi</given-names>
            </name>
            <name name-style="western">
              <surname>Mills</surname>
              <given-names>Bill</given-names>
            </name>
            <name name-style="western">
              <surname>Bolker</surname>
              <given-names>Ben</given-names>
            </name>
            <name name-style="western">
              <surname>Penrose</surname>
              <given-names>Sam</given-names>
            </name>
            <name name-style="western">
              <surname>Sloggett</surname>
              <given-names>Clare</given-names>
            </name>
            <name name-style="western">
              <surname>Blischak</surname>
              <given-names>John</given-names>
            </name>
            <name name-style="western">
              <surname>Moore</surname>
              <given-names>Timothy Eoin</given-names>
            </name>
            <name name-style="western">
              <surname>Mawdsley</surname>
              <given-names>David</given-names>
            </name>
            <name name-style="western">
              <surname>Arnold</surname>
              <given-names>Jeffrey</given-names>
            </name>
            <name name-style="western">
              <surname>Bridges</surname>
              <given-names>Dave</given-names>
            </name>
            <name name-style="western">
              <surname>Becker</surname>
              <given-names>Erin Alison</given-names>
            </name>
            <name name-style="western">
              <surname>Riva</surname>
              <given-names>Giulio Valentino Dalla</given-names>
            </name>
            <name name-style="western">
              <surname>Ing-Simmons</surname>
              <given-names>Liz</given-names>
            </name>
            <name name-style="western">
              <surname>Bazaar</surname>
              <given-names>Research</given-names>
            </name>
            <name name-style="western">
              <surname>Bekolay</surname>
              <given-names>Trevor</given-names>
            </name>
            <name name-style="western">
              <surname>Piaskowski</surname>
              <given-names>Julia</given-names>
            </name>
            <name name-style="western">
              <surname>Sze</surname>
              <given-names>Marc</given-names>
            </name>
            <name name-style="western">
              <surname>Hadley</surname>
              <given-names>Martin John</given-names>
            </name>
            <name name-style="western">
              <surname>Hejazi</surname>
              <given-names>Nima</given-names>
            </name>
            <name name-style="western">
              <surname>Mayer</surname>
              <given-names>Fernando</given-names>
            </name>
            <name name-style="western">
              <surname>Leinweber</surname>
              <given-names>Katrin</given-names>
            </name>
            <name name-style="western">
              <surname>Deer</surname>
              <given-names>Lachlan</given-names>
            </name>
            <name name-style="western">
              <surname>Lesniak</surname>
              <given-names>Nicholas</given-names>
            </name>
            <name name-style="western">
              <surname>Burge</surname>
              <given-names>Olivia Rata</given-names>
            </name>
            <name name-style="western">
              <surname>Martinez</surname>
              <given-names>Paula Andrea</given-names>
            </name>
            <name name-style="western">
              <surname>Conrado</surname>
              <given-names>Ana Costa</given-names>
            </name>
            <name name-style="western">
              <surname>Jankevics</surname>
              <given-names>Andris</given-names>
            </name>
            <name name-style="western">
              <surname>Ashander</surname>
              <given-names>Jaime</given-names>
            </name>
            <name name-style="western">
              <surname>Duckles</surname>
              <given-names>Jonah</given-names>
            </name>
            <name name-style="western">
              <surname>Zappia</surname>
              <given-names>Luke</given-names>
            </name>
            <name name-style="western">
              <surname>Burle</surname>
              <given-names>Marie-Helene</given-names>
            </name>
            <name name-style="western">
              <surname>Mitchell</surname>
              <given-names>Nora</given-names>
            </name>
            <name name-style="western">
              <surname>Bouchet</surname>
              <given-names>Phil</given-names>
            </name>
            <name name-style="western">
              <surname>Harris</surname>
              <given-names>Rayna Michelle</given-names>
            </name>
            <name name-style="western">
              <surname>Renaut</surname>
              <given-names>Sebastien</given-names>
            </name>
            <name name-style="western">
              <surname>Sparks</surname>
              <given-names>Adam H.</given-names>
            </name>
            <name name-style="western">
              <surname>Attali</surname>
              <given-names>Dean</given-names>
            </name>
            <name name-style="western">
              <surname>Tyre</surname>
              <given-names>Drew</given-names>
            </name>
            <name name-style="western">
              <surname>Morrison</surname>
              <given-names>Elise</given-names>
            </name>
            <name name-style="western">
              <surname>McDonald</surname>
              <given-names>Gordon</given-names>
            </name>
            <name name-style="western">
              <surname>Bar</surname>
              <given-names>Ido</given-names>
            </name>
            <name name-style="western">
              <surname>Mickley</surname>
              <given-names>James</given-names>
            </name>
            <name name-style="western">
              <surname>McDevitt-Irwin</surname>
              <given-names>Jamie</given-names>
            </name>
            <name name-style="western">
              <surname>Koziar</surname>
              <given-names>Katherine</given-names>
            </name>
            <name name-style="western">
              <surname>Samuk</surname>
              <given-names>Kieran</given-names>
            </name>
            <name name-style="western">
              <surname>Marwaha</surname>
              <given-names>Kunal</given-names>
            </name>
            <name name-style="western">
              <surname>Chatzidimitriou</surname>
              <given-names>Kyriakos</given-names>
            </name>
            <name name-style="western">
              <surname>Chang</surname>
              <given-names>Lucy</given-names>
            </name>
            <name name-style="western">
              <surname>Kardish</surname>
              <given-names>Melissa</given-names>
            </name>
            <name name-style="western">
              <surname>Potter</surname>
              <given-names>Nicholas</given-names>
            </name>
            <name name-style="western">
              <surname>Boersch-Supan</surname>
              <given-names>Philipp</given-names>
            </name>
            <name name-style="western">
              <surname>Funkhouser</surname>
              <given-names>Scott Allen</given-names>
            </name>
            <name name-style="western">
              <surname>Magle</surname>
              <given-names>Tobin</given-names>
            </name>
            <name name-style="western">
              <surname>waiteb5</surname>
            </name>
            <name name-style="western">
              <surname>Khoja</surname>
              <given-names>Ahsan Ali</given-names>
            </name>
            <name name-style="western">
              <surname>Lee</surname>
              <given-names>Amy</given-names>
            </name>
            <name name-style="western">
              <surname>Berlanga-Taylor</surname>
              <given-names>Antonio</given-names>
            </name>
            <name name-style="western">
              <surname>Srinath</surname>
              <given-names>Ashwin</given-names>
            </name>
            <name name-style="western">
              <surname>bippuspm</surname>
            </name>
            <name name-style="western">
              <surname>Beheim</surname>
              <given-names>Bret</given-names>
            </name>
            <name name-style="western">
              <surname>butterflyskip</surname>
            </name>
            <name name-style="western">
              <surname>Harris</surname>
              <given-names>David J.</given-names>
            </name>
            <name name-style="western">
              <surname>Oliveira</surname>
              <given-names>Diego Rabatone</given-names>
            </name>
            <name name-style="western">
              <surname>Balamuta</surname>
              <given-names>James</given-names>
            </name>
            <name name-style="western">
              <surname>Quan</surname>
              <given-names>Josh</given-names>
            </name>
            <name name-style="western">
              <surname>Woo</surname>
              <given-names>Kara</given-names>
            </name>
            <name name-style="western">
              <surname>Hertweck</surname>
              <given-names>Kate</given-names>
            </name>
            <name name-style="western">
              <surname>Ottoboni</surname>
              <given-names>Kellie</given-names>
            </name>
            <name name-style="western">
              <surname>Weitemier</surname>
              <given-names>Kevin</given-names>
            </name>
            <name name-style="western">
              <surname>Nederbragt</surname>
              <given-names>Lex</given-names>
            </name>
            <name name-style="western">
              <surname>Lonsdale</surname>
              <given-names>Andrew</given-names>
            </name>
            <name name-style="western">
              <surname>Johnston</surname>
              <given-names>Luke W</given-names>
            </name>
            <name name-style="western">
              <surname>Frassl</surname>
              <given-names>Marieke</given-names>
            </name>
            <name name-style="western">
              <surname>Dunning</surname>
              <given-names>Mark</given-names>
            </name>
            <name name-style="western">
              <surname>Donovan</surname>
              <given-names>Mary</given-names>
            </name>
            <name name-style="western">
              <surname>Clark</surname>
              <given-names>Matt</given-names>
            </name>
            <name name-style="western">
              <surname>Jackson</surname>
              <given-names>Mike</given-names>
            </name>
            <name name-style="western">
              <surname>Cadzow</surname>
              <given-names>Murray</given-names>
            </name>
            <name name-style="western">
              <surname>Raghupathy</surname>
              <given-names>Narayanan</given-names>
            </name>
            <name name-style="western">
              <surname>Sélem</surname>
              <given-names>Nelly</given-names>
            </name>
            <name name-style="western">
              <surname>Bachant</surname>
              <given-names>Pete</given-names>
            </name>
            <name name-style="western">
              <surname>Banaszkiewicz</surname>
              <given-names>Piotr</given-names>
            </name>
            <name name-style="western">
              <surname>Barnes</surname>
              <given-names>Richard</given-names>
            </name>
            <name name-style="western">
              <surname>Bagchi</surname>
              <given-names>Robert</given-names>
            </name>
            <name name-style="western">
              <surname>Brosda</surname>
              <given-names>Sandra</given-names>
            </name>
            <name name-style="western">
              <surname>Munro</surname>
              <given-names>Sarah</given-names>
            </name>
            <name name-style="western">
              <surname>Lavrentovich</surname>
              <given-names>Sasha</given-names>
            </name>
            <name name-style="western">
              <surname>Rossum</surname>
              <given-names>Thea Van</given-names>
            </name>
            <name name-style="western">
              <surname>Kelly</surname>
              <given-names>Tyler Crawford</given-names>
            </name>
            <name name-style="western">
              <surname>Hillis</surname>
              <given-names>Vicken</given-names>
            </name>
            <name name-style="western">
              <surname>West</surname>
              <given-names>Kiana Ashley</given-names>
            </name>
            <name name-style="western">
              <surname>Takemon</surname>
              <given-names>Yuka</given-names>
            </name>
            <name name-style="western">
              <surname>Wright</surname>
              <given-names>Tom</given-names>
            </name>
            <name name-style="western">
              <surname>Zimmerman</surname>
              <given-names>Naupaka</given-names>
            </name>
            <name name-style="western">
              <surname>Oliver</surname>
              <given-names>Jeffrey</given-names>
            </name>
            <name name-style="western">
              <surname>Mawdsley</surname>
              <given-names>David</given-names>
            </name>
          </person-group>
          <year>2019</year>
          <article-title>Software Carpentry: R for Reproducible Scientific Analysis</article-title>
          <publisher-name>Software Carpentry</publisher-name>
          <date-in-citation content-type="released">2019-06-01T00:58:27+00:00</date-in-citation>
          <pub-id pub-id-type="doi">10.5281/zenodo.3265163</pub-id>
          <comment content-type="Version">v2019.06.1</comment>
        </element-citation>
      </ref>
    </ref-list>
    <fn-group>
      <fn id="FN14442050">
        <label>*1</label>
        <p>This guide was first created as B-Cubed project deliverable D3.1 <ext-link ext-link-type="uri" xlink:href="https://b-cubed.eu/storage/app/uploads/public/65e/1b2/2a0/65e1b22a0b85c121473896.pdf">Quality requirements for software</ext-link> (<xref ref-type="bibr" rid="B14442060">Huybrechts et al. 2024</xref>). While it was written for B-Cubed software, the suggestions and recommendations are general enough to be used by anyone who wants to improve their research software code.</p>
      </fn>
    </fn-group>
  </back>
  <floats-group>
    <fig id="F13411068" position="float" orientation="portrait">
      <object-id content-type="arpha">DB333658-3BAC-5251-BD3D-6DD766757A1F</object-id>
      <object-id content-type="doi">10.3897/rio.12.e216899.figure1</object-id>
      <object-id content-type="zenodo_dep_id">23528152</object-id>
      <label>Figure 1.</label>
      <caption>
        <p>Screenshot of the online documentation of the forcats function <monospace>fct_rev()</monospace> (licensed under <ext-link ext-link-type="uri" xlink:href="https://opensource.org/licenses/MIT">MIT</ext-link>, <xref ref-type="bibr" rid="B13419480">Wickham 2023</xref>).</p>
      </caption>
      <graphic xlink:href="rio-12-e216899-g001.png" position="float" id="oo_1385898.png" orientation="portrait" xlink:type="simple">
        <uri content-type="original_file">https://binary.pensoft.net/fig/1385898</uri>
      </graphic>
    </fig>
    <table-wrap id="T13410777" position="float" orientation="portrait">
      <label>Table 1.</label>
      <caption>
        <p>Example of version changes</p>
      </caption>
      <table rules="all">
        <tbody>
          <tr>
            <td rowspan="1" colspan="1">0.1</td>
            <td rowspan="1" colspan="1">First release</td>
          </tr>
          <tr>
            <td rowspan="1" colspan="1">0.2</td>
            <td rowspan="1" colspan="1">Minor release</td>
          </tr>
          <tr>
            <td rowspan="1" colspan="1">0.2.1</td>
            <td rowspan="1" colspan="1">Critical bug fix</td>
          </tr>
          <tr>
            <td rowspan="1" colspan="1">0.3</td>
            <td rowspan="1" colspan="1">Minor release</td>
          </tr>
          <tr>
            <td rowspan="1" colspan="1">1.0-rc.1</td>
            <td rowspan="1" colspan="1">Release candidate for version 1.0</td>
          </tr>
          <tr>
            <td rowspan="1" colspan="1">1.0</td>
            <td rowspan="1" colspan="1">First release of the public API (i.e. the collection of user facing functions)</td>
          </tr>
          <tr>
            <td rowspan="1" colspan="1">1.1</td>
            <td rowspan="1" colspan="1">Minor release</td>
          </tr>
          <tr>
            <td rowspan="1" colspan="1">1.1.1</td>
            <td rowspan="1" colspan="1">Critical bug fix</td>
          </tr>
          <tr>
            <td rowspan="1" colspan="1">1.2</td>
            <td rowspan="1" colspan="1">Minor release</td>
          </tr>
        </tbody>
      </table>
      <table-wrap-foot>
        <p>There is no semantic difference between <italic>x.y.0</italic> and <italic>x.y</italic>.</p>
      </table-wrap-foot>
    </table-wrap>
  </floats-group>
</article>
