testing-r-packages

SKILLWorkflowcommunity
v0.0.0posit-devMITUpdated 2d agoSource →

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 sna

Community-submitted skill. Not yet reviewed by the Forge team. Full prompt content may not be available.Request review →
469Repo stars
1Clients
1Formats
2d agoLast update
Skill
Authorposit-dev
Version0.0.0
LicenseMIT
CategoryWorkflow
Formatsskill.md
PromptNot published
Compatibility
Claude✓ Supported
Cursor
Copilot
ChatGPT
Gemini
About

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.

Keywords
skillclaude