Testing R Packages

Best practices for writing R package tests using testthat version 3+. Use when writing, organizing, or improving tests for R packages. Covers test structure, expectations, fixtures, snapshots, mocking, and modern testthat 3 patterns including self-sufficient tests, proper cleanup with withr, and snapshot testing.

majiayu000 Updated 567 repo stars

File contents

majiayu000/claude-skill-registry-data/tree/main/testing/testing-r-packages-jdenn0514-surveycore commit a22b0d434f

Frequently asked questions

npx skillmds@latest add majiayu000/testing-r-packages-2