use_testthat
Configure testthat testing infrastructure for an R package by creating tests/testthat/ and adding testthat to Suggests.
Instructions
Configure the testthat testing infrastructure for a package using usethis::use_testthat(). Creates tests/testthat/ and adds testthat to Suggests.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_path": "<project_path>"
},
"name": "use_testthat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edition | No | testthat edition to use (e.g. 3). Defaults to latest stable edition. | |
| project_path | Yes | Absolute path to the root of the R package. |