Marketplace

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.

$ 설치

git clone https://github.com/posit-dev/skills /tmp/skills && cp -r /tmp/skills/r-lib/testing-r-packages ~/.claude/skills/skills

// tip: Run this command in your terminal to install the skill