write-testthat-tests

Installation
SKILL.md

Write testthat Tests

Create comprehensive tests for R package functions using testthat edition 3.

When to Use

  • Adding tests for new package functions
  • Increasing test coverage for existing code
  • Writing regression tests for bug fixes
  • Setting up test infrastructure for a new package

Inputs

  • Required: R functions to test
  • Required: Expected behavior and edge cases
  • Optional: Test fixtures or sample data
  • Optional: Target coverage percentage (default: 80%)

Procedure

Related skills
Installs
1
GitHub Stars
13
First Seen
Mar 18, 2026