Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →posit-dev/r-package-development
R package development with devtools, testthat, and roxygen2.
Passed 18 of 20 test cases with the skill, and 11 of 20 without it.
and 7 more in the full report
8 fixed12 passed either way2 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 8 test cases the skill fixed. Same model, same prompt, with and without the skill.
What single command runs all tests specifically for `R/parser.R`?
| Checked | Without skill | With skill |
|---|---|---|
| Uses devtools::test_active_file('R/parser.R') | Missed | Passed |
The instructions your model reads when the skill loads.
# Run code in the package
Rscript -e "devtools::load_all(); code"
# Run all tests
Rscript -e "devtools::test()"
# Run all tests for files starting with {name}
Rscript -e "devtools::test(filter = '^{name}')"
# Run all tests for R/{name}.R
Rscript -e "devtools::test_active_file('R/{name}.R')"
# Run a single test "blah" for R/{name}.R
Rscript -e "devtools::test_active_file('R/{name}.R', desc = 'blah')"
# Redocument the package
Rscript -e "devtools::document()"
# Check pkgdown documentation
Rscript -e "pkgdown::check_pkgdown()"
# Check the package with R CMD check
Rscript -e "devtools::check()"
# Format code
air format .
air format . after generating code.|>) not the magrittr pipe (%>%).\() ... for single-line anonymous functions. For all other cases, use function() {...}.test cases passed, vs 11 / 20 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.