~/talk

Getting it right: Writing reliable and maintainable R code

Talkat rstudio::conf 2019 · 2019-01-15..01-18· [testing]
links:none on file
slides:none on file

Argues that automated tests give quick feedback and let teams change code faster, demonstrates using testthat plus usethis::use_test to scaffold tests and running them with Command/Ctrl‑Shift‑T or devtools::test, shows a real example where unique handling of factors breaks then is fixed and tests updated, explains snapshot testing for Shiny with shinytest record and playback, recommends starting with major functions and integrating tests into CI for continual validation.

AI-written summary · about

  1. 0:00Intro
  2. 0:17Data science through code
  3. 2:37Code quality matters
  4. 4:13Writing tests
  5. 5:55testthat
  6. 8:14An example of a test file from the string package
  7. 8:44Expectations
  8. 11:23Development workflow
  9. 11:43Testing considerations
  10. 12:34shinytest
  11. 15:07Designing for ease of testing
  12. 16:30Profit!
  13. 16:49Resources to read/watch
  14. 17:45Resources for testing packages
  15. 18:05Next steps
~/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.