posit-dev / skills / testing-r-packages Write robust tests for your R package Reference for testthat 3+ best practices: test structure, snapshot testing, fixtures, mocking, and cleanup patterns. Covers self-sufficient tests and withr integration for R packages.
Best for: R package maintainers writing or refactoring test suites that scale.
Engineering / code-review atomic for-engineers no-setup from-text
Source Creator's repository · posit-dev/skills
License: MIT
Security Security checks in progress
Results will appear here once audits complete
Checked by 3 independent security firms
Does it try to trick the AI? Not yet checked Pending · Gen Agent Trust Hub
Does it sneak in hidden code? Not yet checked Pending · Socket
Does it have known bugs? Not yet checked Pending · Snyk
Reference for testthat 3+ best practices: test structure, snapshot testing, fixtures, mocking, and cleanup patterns. Covers self-sufficient tests and withr integration for R packages.
This skill requires the install command below.
Hide command↑
npx skills add https://github.com/posit-dev/skillscopy
10 installs