document
Generate roxygen2 reference pages and update NAMESPACE for an R package by reading @-tags and creating man/*.Rd files.
Instructions
Generate roxygen2 documentation and update NAMESPACE using devtools::document(). Reads @-tags from R source and creates man/*.Rd files.
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": "document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| roclets | No | Character vector of roclet names to use (e.g. ['rd', 'namespace']). Defaults to all. | |
| project_path | Yes | Absolute path to the root of the R package. |