LogoClawIndex
CasesSkillsAbout
LogoClawIndex

tdd-workflow - Test-driven R development with testthat

Guides R development with test-first tests, unit and integration testing, edge-case checks, and a minimum 80% coverage target using testthat.

Tags

Updated: 2026-10-05

Capabilities

Typical Inputs

Typical Outputs

What this skill does

  • Initialize testthat infrastructure
  • Write tests before code
  • Run unit and integration tests
  • Create snapshot tests
  • Check test coverage
  • Test error scenarios

Inputs

  • R package source code
  • Expected behavior
  • Test data and fixtures
  • Feature or bug requirements

Outputs

  • R test files
  • Test results
  • Snapshot files
  • Coverage status

Requirements

  • R package project
  • testthat Edition 3
  • usethis package
  • devtools package

Source

  • Spec: SKILL.md

ClawIndex

OpenClaw Skills & Use Case Index

ClawIndex is an ecosystem-driven index of OpenClaw skills and real-world use cases.

Index

Skills·
Cases

Meta

About·
Disclaimer·
Email·
GitHub
© 2026 ClawIndex All Rights Reserved.
R
TDD
testthat
unit testing
integration testing
snapshot testing
test coverage
Initialize testthat infrastructure
Write tests before code
Run unit and integration tests
Create snapshot tests
R package source code
Expected behavior
Test data and fixtures
R test files
Test results
Snapshot files