@posit-dev/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.

View in AI SkillSafe app
Scanned · no findings
0 downloads
0 stars
0 demos
SKILL.md

Embed badges

Add these to your README to show the skill's verification status.

SkillSafe verified badge
Verified badge
[![SkillSafe verified badge](https://api.skillsafe.ai/v1/badge/@posit-dev/testing-r-packages/verified)](https://skillsafe.ai/skill/@posit-dev/testing-r-packages/)
Installs badge
Installs badge
[![Installs badge](https://api.skillsafe.ai/v1/badge/@posit-dev/testing-r-packages/installs)](https://skillsafe.ai/skill/@posit-dev/testing-r-packages/)
Scan badge
Scan badge
[![Scan badge](https://api.skillsafe.ai/v1/badge/@posit-dev/testing-r-packages/scan)](https://skillsafe.ai/skill/@posit-dev/testing-r-packages/)
Eval pass rate badge
Eval pass rate
[![Eval pass rate badge](https://api.skillsafe.ai/v1/badge/@posit-dev/testing-r-packages/eval)](https://skillsafe.ai/skill/@posit-dev/testing-r-packages/)