Conventions and commands for developing R packages with devtools, testthat and roxygen2.
- What it does
- Provides a set of R commands for loading package code, running tests, regenerating documentation, checking pkgdown sites and running R CMD check. It also states coding, testing, documentation and NEWS.md conventions, including test file placement, snapshot expectations, roxygen wrapping and changelog bullet ordering. The deliverable is guidance applied to an existing or new R package rather than a generated artifact.
- When to use it
- Use when working on an R package and needing to run its tests, document functions, check the package or follow project conventions. Also useful when adding new code, tests, roxygen documentation or NEWS.md entries to a package.
- Requirements
- Requires an R runtime with the devtools, testthat, roxygen2 and pkgdown packages, plus the air formatter. No scripts ship with the skill; it is instructions only.