Depends
Check that dev dependencies are installed before building. This is useful for ensuring development tools like testing frameworks, documentation generators, or linting packages are available.
CLI Usage
builder -depends testthat devtools roxygen2Config Usage
depends: testthat devtools roxygen2Behavior
- Checks each package with
requireNamespace() - If any package is missing, build fails with an error
- All missing packages are reported before exiting
Example
# Check dev dependencies before building
builder -depends testthat covr lintr
# Combined with other options
builder -input srcr/ -depends testthat devtoolsThis is intended for development dependencies - packages needed during the build process but not necessarily at runtime.