Checklist issue, as GitHub shows it
Checklist: Set up
From the first run: your own code, the repository files, CI and the repository settings every package needs.
Your package
- The example is replaced with your own code
R/say_hello.R is gone or no longer has say_hello(); its tests and help page go toolaunchR ticks this- The README's example uses your own functionslaunchR ticks this
- DESCRIPTION is yours
- Description says what only this package doeslaunchR ticks this
- Your real email, not the placeholderlaunchR ticks this
- Repository files are in place
- LicencelaunchR ticks this
- Contributor guidelaunchR ticks this
- The name isn't taken on CRAN or Bioconductor (
available::available())CRAN only
CI
- CI is green on the default branchlaunchR ticks thiswith CI
Settings
- Squash merge only, and delete branches after merge (Settings, General: under Pull Requests tick Allow squash merging and Automatically delete head branches, and untick Allow merge commits and Allow rebase merging)launchR ticks this
- Workflow token set to read-only (Settings, Actions, General: under Workflow permissions choose Read repository contents and packages permissions)launchR ticks this
Checklist issue, as GitHub shows it
Checklist: Before public
While the repository is private: what to do before you make it public.
Nothing private goes public
- Searched everything that turns public with the repository
- The whole history, commit messages and branch names, for secrets (a full-history scan, such as gitleaks)
- Code, comments, tests and examples: no machine paths, private names, emails or confidential data
- Issues, pull requests and their comments (they turn public too)
- AI instruction files (
AGENTS.md, .agents/rules/): no personal habits or machine paths - Example and test data are made up or openly licensed
- Only files meant to be shared are tracked (
git ls-files): no local notes, data or settings
Going public
- The repository is public (Settings, General, Danger Zone: choose Change visibility, then Make public)launchR ticks this
Checklist issue, as GitHub shows it
Checklist: After public
Once the repository is public: the settings and extras that come with being public.
Settings
- Secret scanning and push protection on (Settings, Advanced Security: switch on Secret Protection, then Secret scanning and Push protection)launchR ticks this
- Private vulnerability reporting on (Settings, Advanced Security: switch on Private vulnerability reporting (Enable), so SECURITY.md has somewhere to send reporters)launchR ticks this
- Block force pushes and deleting the default branch with a ruleset (Settings, Rules, New branch ruleset: set enforcement to Active, target the default branch, and tick Restrict deletions and Block force pushes)launchR ticks this
- Workflows from first-time contributors wait for your approval (Settings, Actions, General: under the approval for fork pull request workflows choose Require approval for first-time contributors, or for all external contributors)launchR ticks this
- Optional: releases can't be changed once published (Settings, General: look for Immutable releases and switch it on)launchR ticks thisoptional
CI
- Windows and Mac added to CI (free on public repositories)with R CMD check
platforms in r-cmd-check.yamllaunchR ticks thiswith R CMD checkplatforms in r-cmd-check-extended.yamllaunchR ticks this
Website
- The website is livelaunchR ticks thiswith a website
- It is published from GitHub Actions (Settings, Pages: under Build and deployment set Source to GitHub Actions)launchR ticks thiswith a website
Make it findable
- Repository description and topics (the repository's home page: use the gear beside About to add a description and topics)launchR ticks this
- Hex logo, with favicons for the website
man/figures/logo.png is in placelaunchR ticks this- Favicons built (
pkgdown::build_favicons())launchR ticks thiswith a website - Link preview image (Settings, General: upload it under Social preview)
- The README's badges show only what is set up
- R-universe builds the package, so people can install it without compiling it (R-universe)
Optional
- Codecov set up (Codecov: add the repository and its upload token as a secret)optionalwith the coverage check
- The README shows the package at work: its output, a screenshot or a short GIFoptional
- A CITATION file, if people will cite the package (
usethis::use_citation())launchR ticks thisoptional
Checklist issue, as GitHub shows it
Checklist: Before CRAN
For a package going to CRAN: what to check before you submit it.
Checks
- CI is green on the default branchlaunchR ticks thisCRAN onlywith CI
- The quality gate's
full mode passes (.github/workflows/README.md, "Run the checks on your computer")CRAN only - win-builder and mac-builder are cleanCRAN only
- win-builder with R-devel (
devtools::check_win_devel())CRAN only - mac-builder (
devtools::check_mac_release())CRAN only urlchecker::url_check() reports nothingCRAN only- Tests and examples are quick, and use at most two coresCRAN only
What CRAN's reviewers read
- Title and Description follow CRAN's styleCRAN only
- Title in Title Case, without "in R", "for R" or "A package for"CRAN only
- Description doesn't start with the package name or "This package"; other software in 'single quotes', functions with ()CRAN only
- Methods from papers cited as authors (year)
<doi:...>CRAN only - Every exported function's help page says what it returns, and has an example that runsCRAN only
\dontrun{} only for code that can't run on CRAN; slow examples in \donttest{}CRAN only- Functions leave the user's session as they found itCRAN only
- Options,
par() and the working directory are restored (on.exit())CRAN only - Files are written only to
tempdir(), never the home folder or the package's folderCRAN only - Messages go through
message() or warning(), not print() or cat() (print methods aside)CRAN only - Authors@R names everyone who wrote code, and a copyright holder ('cph')CRAN only
- Code, fonts or images from others are credited (Authors@R or
inst/COPYRIGHTS)CRAN only
Submission
- Version and NEWS.md set for the first release, in the release pull requestCRAN only
- cran-comments.md gives the check results and says it's a new submissionCRAN only
- Submitted with
devtools::submit_cran(), and the link in CRAN's confirmation email clickedCRAN only - If CRAN asked for changes: made, described under a "Resubmission" heading in cran-comments.md, and sent againCRAN only
- The package is on CRANlaunchR ticks thisCRAN only
Checklist issue, as GitHub shows it
Checklist: After acceptance
Once the package is on CRAN: what to do after it is accepted.
Tell people
- The README installs from CRAN first (
install.packages("pkg")), then the development versionlaunchR ticks thisCRAN only - A CRAN status badge in the README (and a downloads badge, if you chose it)launchR ticks thisCRAN only
- Optional: announced (a blog post, R Weekly, social media)CRAN onlyoptional
Release record
- GitHub release published from the accepted commit (
usethis::use_github_release()) (Releases: choose the tag of the accepted version and click Publish release)launchR ticks thisCRAN only - Development version on the default branch (
usethis::use_dev_version()), with a new NEWS.md headingCRAN only
A week later
- CRAN's check results page shows no errors or warnings on any systemCRAN only
Checklist issue, as GitHub shows it
Checklist: Next release
A fresh list for each release: from the first run for a package not for CRAN, once the package is on CRAN for one that is.
Before you start
- launchR's update merged (Dependabot opens it), and its notes read
- Each dependency is still needed, with the right minimum version
Checks
- CI is green on the default branchlaunchR ticks thiswith CI
- The quality gate's
full mode passes - CRAN's check results for the current version are clean, or fixed in this releaseCRAN only
- win-builder with R-devel is cleanCRAN only
- Packages that depend on this one still pass (
revdepcheck::revdep_check()), and their maintainers know about breaking changesCRAN only urlchecker::url_check() reports nothing
Docs
- README, articles and help pages match the code; a search for old wording finds nothing
- NEWS.md lists the changes in this version, breaking changes first
- Optional: functions changed in a breaking way warn first (
lifecycle::deprecate_warn())optional
Release
- Version set with
usethis::use_version() - cran-comments.md updated with this release's results and reverse dependenciesCRAN only
- Submitted, and CRAN has the new versionCRAN only
- GitHub release published for this version (Releases: choose the tag for this version and click Publish release)launchR ticks this
- Development version on the default branch, with a new NEWS.md heading
Checklist issue, as GitHub shows it
Added to Checklist: Next release
For teams with a quality process: adds the scope, tests, review and evidence sections to each Next release.
Before you start
- Each package in Imports is approved for use where you work
QC: scope and risk
- README says what the package is for and who uses it
- Risk judged: what a wrong result would affect, and how much testing that calls for
- Optional: riskmetric scores for the package and each new dependency attached hereoptional
- Every exported function's help page says what it returns
QC: tests
- Every exported function has a test of its documented behaviour, bad input included
- Coverage meets the limit in DESCRIPTION (the coverage check passes)launchR ticks thiswith the coverage check
- Tested on the systems and R versions your users run (
platforms in r-cmd-check.yaml)
QC: review
- Each change was reviewed in a pull request by someone other than its author
- A ruleset requires an approving review before merging (Settings, Rules, New branch ruleset: set enforcement to Active, target the default branch, and tick Require a pull request before merging with at least 1 approval)launchR ticks this
QC: record
- The QC evidence is linked from this issue
- The CI runs for the released commit
- The reviewed pull requests in this release
- The R CMD check and coverage results
- Signed off: a named person comments here with the version, the date and their decision
- Installed from the release tag into your team's package repository or library
Issue form, as GitHub shows it. It sets the label bug.
Bug report
Something is broken or behaves differently from the documentation.
Search existing issues first. Use made-up or bundled data, and remove private data, credentials and machine paths from examples, output and screenshots.
Link only to public pages.
This form also covers problems in the docs, the website and CI. A short example is enough; you don't need to find the cause.
What happened, and what did you expect? *
One or two sentences. Include the error message, if there is one. A screenshot is optional.
Minimal reproducible example (reprex) *
Paste the smallest runnable R example that shows the problem. reprex::reprex() helps but isn't required.
For a problem in the docs, the website or CI, give the page or file and the exact steps. Use fenced code blocks for code.
yourpkg version *
Use packageVersion("yourpkg"). Add the commit if you installed from GitHub. For a docs, website or CI problem without the package installed, write "Not installed".
Environment details (optional)
Paste sessionInfo() or sessioninfo::session_info() if you can. Remove private details and paths first; a short summary is fine.
Fixed when (optional)
What would show it's fixed, for example "the example above returns the expected result".
Issue form, as GitHub shows it. It sets the label feature.
New feature
Propose something yourpkg can't do yet.
Search existing issues first. Keep it short: the outcome you want is enough to start.
Use made-up data, and leave out private data, credentials and machine paths.
Link only to public examples.
What should a user be able to do, and why? *
One short use case. Describe the outcome; a technical design is optional.
Done when (optional)
How someone could tell it works, for example "a user can ...".
Example (optional)
A small example, a workaround you use now, or a related issue.
Issue form, as GitHub shows it. It sets the label enhancement.
Improve existing behaviour
Make something yourpkg already does better.
Search existing issues first. If something is broken, use Bug report instead.
Use made-up data, and leave out private data, credentials and machine paths.
Link only to public examples.
What happens now, and what would help? *
Name the function or behaviour, and give a short use case for the improvement.
Done when (optional)
How someone could tell it's better, for example "a user can ...".
Existing code to consider (optional)
Could this change a default or break code that uses yourpkg today? Link an example if you have one.
Issue form, as GitHub shows it. It sets the label documentation.
Documentation change
Suggest a clearer explanation, a missing guide or a correction.
Search existing issues first. For an example that fails or a page that doesn't work, use Bug report instead.
Leave out private data, credentials and machine paths.
Link only to public pages.
Page, help topic or file *
Include the section if you know it, or say where a missing explanation would help.
What needs explaining or correcting? *
Say what a reader needs to understand. Suggested wording is welcome but optional.
Done when (optional)
What the reader should then understand or be able to do.
Issue form, as GitHub shows it. It sets the label idea.
Idea
Not planned yet; for discussion.
Search existing issues first. Use made-up data, and leave out private data, credentials and machine paths.
Link only to public examples.
The idea *
What, for whom, and why.
Issue form, as GitHub shows it. It sets the label chore.
AI instructions change
Improve the instructions in AGENTS.md, CLAUDE.md or .agents/rules/.
This form is for the repository's instructions to AI tools. If following an instruction gives a wrong result in the package, use Bug report, so the version and an example are included.
Search existing issues first. Name files by their path in the repository. Leave out personal settings, credentials, private data, machine paths and chat transcripts.
Link only to public examples.
Instruction file and section *
Name the file (AGENTS.md, CLAUDE.md or one in .agents/rules/) and the section. For a missing instruction, say where it belongs.
What should change, and why? *
Give a short example of what is unclear or missing, or the rule you suggest. Suggested wording is optional.
Done when (optional)
How someone could check the instruction is clear and agrees with the contributor guide.
launchR's skill for AI agents, at /SKILL.md
Working on a launchR package
An AI coding agent working on an R package made with launchR should follow this skill. The maintainer owns the package; launchR provides its shared CI, quality gate, repository checklists and templates.
How to tell a package uses launchR
Check for these indicators in the repository:
Where documentation lives
The package’s own files hold the project-specific configuration. Upstream launchR documentation holds general mechanics and CLI commands:
.github/workflows/README.md: How CI checks run, local quality-gate runs, modifying checks, updates and eject.
tests/README.md: Test file kinds, suffix conventions, skip conditions and running tests locally.
.github/CONTRIBUTING.md: Development workflow, commit formatting, and checks to run before a pull request.
AGENTS.md and .agents/rules/: Instructions for coding agents when the AI setup part was enabled.
DESCRIPTION: Package metadata, Config/launchR/version, and quality-gate settings under Config/quality-gate/*.
To do this | Read this
Consult the package’s own files first. Consult launchR’s repository on GitHub only for what is not kept inside the package.
| To do this |
Read this |
| Start a package |
Visit https://launch-r.web.app/#start for the browser generator, or launchR’s README on GitHub: How a package is made and The command line (launchr.R new flags). |
| Add launchR’s checks to an existing package |
Visit https://launch-r.web.app/#yours to add CI, a website or the GitHub setup, or launchR’s README on GitHub: Add CI to an existing package. |
| Run the checks locally |
.github/workflows/README.md (“Run the checks on your computer”) for the quality gate snippet and prerequisites, .agents/rules/checks.md, and .github/CONTRIBUTING.md (“Before you open a pull request”). For gate modes (fast, tests, full) and exit codes, see launchR’s README: The quality gate. |
| Read the pull request’s CI report and fix a failure |
.github/CONTRIBUTING.md (“Workflow” and “Before you open a pull request”) and .agents/rules/checks.md for diagnosing failures and fixing root causes. For PR report comments and token permissions, see launchR’s README: How your checks reach launchR. |
| Know which tests run where (test file kinds) |
tests/README.md (“Test file kinds”) in a new package, or .github/workflows/README.md (“Test file kinds”) in a package set up by the existing-package route, for file naming conventions (-browser.R, -snap.R, -extended.R), skip rules, and .agents/rules/tests.md. |
| Set up the GitHub repository (labels, root issue, checklists) |
Run Set up this repository (github-setup.yaml) from the package’s Actions tab; the R line and what each run reports are in launchR’s README, Set up GitHub. For the checklist stages (Set up, Before public, After public, Before CRAN, After acceptance, and Next release with the QC sections), when each opens, how boxes tick and nest, the root issue structure and labels, see launchR’s README: Set up GitHub. |
| Move to a newer launchR version |
.github/workflows/README.md (“Updates”) for how a newer launchR version reaches the caller files, and the launchR releases page for each version’s notes and what to change. A package with no Config/launchR/checklists line in DESCRIPTION gets a Set up checklist on its next “Set up this repository” run. |
| Change when a check runs, turn one off, or turn the CI report comment off |
.github/workflows/README.md (“Changing a check”) for schedules, platforms, timeouts, deleting check files, and turning off comments with ci-report: false. |
| Copy the checks into the package so nothing depends on launchR (eject) |
.github/workflows/README.md (“Leaving launchR”) for the R eject snippet, or launchR’s README: The command line (launchr.R eject). |
Rules for the agent
- Fix the cause of a failing check, never loosen a check or skip it.
- Don’t edit the
uses: line, the permissions: block or the ci-report line of a caller file unless the person asks.
- Regenerate
man/ and NAMESPACE with devtools::document(), never by hand.
- A private or company package: check the organisation’s policy before downloading and running launchR’s scripts locally (CI runs the same checks either way).
- Report what you ran and what it printed.
Reporting problems
Report a bug or a false alarm in launchR itself (its shared workflows, quality gate or command line) at
https://github.com/insightsurge/launchR/issues.