~/talk

How non-programmers can make sparks fly when using testthat during package development

Talkat posit::conf(2025) · 2025-09-16..09-18· [testing, developer-experience]
links:none on file
slides:none on file

Package development for non-programmers is practical: using testthat plus CI catches real bugs and supports refactors. Example: tidywater’s define_water, chemdose_ph and blend_waters use tests to compare alternative workflows; devtools::test shows 33 tests for balanced_ions, 25 for biofilters and 50 tests with one failure for define_water. A refactor from tidyverse to base R introduced a merge default (inner vs left join) bug that tests find. GitHub R-CMD-check and coverage gates block merges until checks pass, enabling a safe, faster package.

AI-written summary · about

  1. 0:00testthat for non-programmers
  2. 2:29Testing inputs and outputs
  3. 8:42Trusting edge cases
  4. 10:53Refactoring and automation
  5. 16:46Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.