Install any skill in seconds. Free to start, no credit card required.
Get Started Free →brycewang-stanford/tdd-workflow
Test-driven development workflow for R using testthat.
Passed 23 of 24 test cases with the skill, and 16 of 24 without it.
and 7 more in the full report
7 fixed16 passed either way1 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 7 test cases the skill fixed. Same model, same prompt, with and without the skill.
In testthat Edition 3, what specific expectation function checks both dimensions (rows and columns) of a matrix or array in a single call?
| Checked | Without skill | With skill |
|---|---|---|
| Recommends using expect_shape to check matrix or array dimensions. | Missed | Passed |
The instructions your model reads when the skill loads.
This skill ensures all R code development follows TDD principles with comprehensive test coverage using testthat.
Initialize testing infrastructure for your package:
# Set up testthat (Edition 3)
usethis::use_testthat(3)
# Create a test file for an existing source file
usethis::use_test("function_name")
# Or create test and source file together
usethis::use_r("function_name")
usethis::use_test("function_name")
ALWAYS write tests first, then implement code to make tests pass.
test cases passed, vs 16 / 24 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.