launchRby InsightSurge

Free and open source, MIT licence

Start your R package the way good ones finish

Good practices from the first commit: tests, automatic checks on GitHub (CI), GitHub files and checklists, in place before you write a line. Answer a few questions, download a zip named after your package, and carry on. No terminal needed.

Scroll to see how it works

Without good practices

It works today. That is the trap.

A typical R package has the code and little around it.

  • ·R/ man/ DESCRIPTION NAMESPACE
  • ✕tests/Nothing proves a change is safe
  • ✕.github/workflows/No checks run on their own
  • ✕.lintrEvery contributor writes a different style
  • ✕LICENSEOthers can't safely use the code
  • ✕NEWS.mdNobody can tell what changed, or when
  • ✕.Rbuildignore .gitignoreStray files reach the build or git
  • ✕CONTRIBUTING SECURITYNo agreed way to help or report a flaw
  • ✕ISSUE_TEMPLATE/Bug reports with no version or steps
  • ✕pull_request_templateChanges merge with no record of why
  • ✕GitHub labelsNothing shows what is urgent or blocked

The risk grows with time: a fix breaks something else, nobody remembers why a change was made, and the issue list can't be trusted.

With launchR

The same package, with good practices in place.

  • ✓R/ man/ DESCRIPTION NAMESPACE README.md
  • ✓tests/testthat, with a first test written
  • ✓.github/workflows/Seven checks, plus the website if you add one
  • ✓.lintr air.tomlOne code style, checked automatically for everyone
  • ✓LICENSEMIT, or proprietary for a company package
  • ✓NEWS.md cran-comments.mdA change log, and notes for CRAN
  • ✓.Rbuildignore .gitignoreOnly the right files ship
  • ✓CONTRIBUTING SECURITYClear rules for helpers, and a code of conduct
  • ✓ISSUE_TEMPLATE/Five forms that ask the right questions, or pick your own when you customise
  • ✓pull_request_templateEvery change explains itself
  • ✓GitHub labelsTwelve, from bug to priority: high, next to GitHub's own; pick which when you customise

Plus a checklist for each stage, which opens when that stage arrives, and README badges you pick. What you get follows your plan, and you can customise any of it.

Working with an AI assistant? Add instructions it follows (AGENTS.md, a CLAUDE.md that loads it, and rules in .agents/rules/, under Extras when you customise), and point it to launchR's guide for agents at /SKILL.md.

Quality checks

Seven checks that run by themselves.

Checks GitHub runs by itself on every change, known as CI (continuous integration). Each is a short file in your package: change it or delete it. Each pull request gets one comment that says which checks failed and what to do about each.

  1. r-cmd-checkR CMD check, the core check: what CRAN runs on every package
  2. lintStyle, docs in sync, spelling
  3. secret-scanPasswords and tokens committed by mistake
  4. coverageHow much code the tests run
  5. no-suggestsWorks without optional packages
  6. full-testsEvery test, including the ones CRAN skips
  7. r-cmd-check-extendedWeekly R CMD check on more systems

Every launchR release is tested on GitHub's Linux, Windows and Mac runners before it ships, and checked against the setups of the release before it, so an update doesn't break your package.

Your plan

Tell it your plan. It sets up the rest.

Where is the package headed? Each plan sets sensible defaults; choose Customise a plan to change any of them.

  • Public, going to CRAN
  • Public, not for CRANInstalled from GitHub
  • Private for nowPublic and CRAN later
  • Private for goodQC sections in each release checklist, for teams with a quality process

Set up opens on the first run; the other checklists open when that stage arrives: Before public, After public, Before CRAN, After acceptance and Next release. QC adds its sections to Next release, for any plan.

Yours to keep

Built in your browser. Yours to keep.

Nothing you type leaves your browser, and there is no server. What you download is an ordinary R package that never needs this site again.

If you accept cookies, Google Analytics counts visits and zips built, never what you type.

Already have a package?
Add the automatic checks (CI files), and if you want a website or issue forms, labels and checklists. R/ and tests/ are left alone.
Need the checks to stay frozen?
A snapshot copied into the repository, with no automatic fixes. Coming soon
Harsh Verma

Harsh Verma

R Leader · R packages, Shiny, AI · Pharma GxP

I lead R architecture and engineering in pharma: how teams design, build and validate R packages, Shiny apps and AI solutions, GxP-ready from the start. I still build them myself, and I build whatever else catches my curiosity.

Good R work is more than a few R scripts. It needs a codebase built with care, an architecture that holds up, and a clear place in the network of products around it. A Shiny app or a package rarely stands alone: it trades data with other systems, pipelines and services that all have to work in sync. Getting there is the step from R coding to R engineering, which is what my R Engineering Playbook is about.

Why launchR exists. Setting up an R package properly takes care, and it is the part most easily skipped. launchR does that part once, the same way every time, so good practices are in place from the first commit, not discovered once the water is over your head.

Your package

A few questions. Nothing you type leaves your browser.

Letters, numbers and dots only, starting with a letter: no - or _. Going to CRAN? Check the name is free first: open cran.r-project.org/package=yourname.

It becomes the Title in DESCRIPTION, and CRAN asks for 65 characters or fewer.

It becomes the Description in DESCRIPTION. Left empty, it repeats the line above; CRAN asks for more than that, so the Before CRAN checklist reminds you.

Goes in DESCRIPTION. Left empty, a placeholder goes there: replace it before you release, as CRAN needs a real one.

Where the package will live on GitHub, such as github.com/yourname/yourpackage. It fills in the links in your README and DESCRIPTION. No GitHub account yet? Sign up free at github.com/signup, then come back with your username.

How do you want to set it up?
What is the plan for this package?

Preview