testing-r-packages

11 stars
20

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.

Marketplace

Third-Party Agent Skill: Review the code before installing. Agent skills execute in your AI assistant's environment and can access your files. Learn more about security

Installation for Agentic Skill

View all platforms →
skilz install posit-dev/skills/testing-r-packages
skilz install posit-dev/skills/testing-r-packages --agent opencode
skilz install posit-dev/skills/testing-r-packages --agent codex
skilz install posit-dev/skills/testing-r-packages --agent gemini

First time? Install Skilz: pip install skilz

Works with 22+ AI coding assistants

Cursor, Aider, Copilot, Windsurf, Qwen, Kimi, and more...

View All Agents
Download Agent Skill ZIP

Extract and copy to ~/.claude/skills/ then restart Claude Desktop

1. Clone the repository:
git clone https://github.com/posit-dev/skills
2. Copy the agent skill directory:
cp -r skills/r-lib/testing-r-packages ~/.claude/skills/

Need detailed installation help? Check our platform-specific guides:

Related Agentic Skills

Agentic Skill Details

Repository
skills
Stars
11
Type
Technical
Meta-Domain
development
Primary Domain
testing
Market Score
20

Report Security Issue

Found a security vulnerability in this agent skill?