r-lib-testing

Official

Structured R package testing with testthat.

Authornq-rdl
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Standardizes how R packages are tested by providing clear conventions, tooling guidance, and modern testthat patterns.

Core Features & Use Cases

  • Test organization patterns: file structure, describe/it style, and traditional test_that usage.
  • Fixtures, snapshots, and mocking: guidance on creating reusable fixtures and using mock bindings.
  • Workflow guidance: setup, running tests, and best practices for reliable test suites.

Quick Start

Install testthat 3, initialize tests with usethis::use_testthat(3), and start adding tests under tests/testthat.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: r-lib-testing
Download link: https://github.com/nq-rdl/agent-extensions/archive/main.zip#r-lib-testing

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.