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/data/testing-r-packages commit 1269bf984b

Frequently asked questions

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