build
Create a source or binary tarball for an R package, specifying destination, binary output, and vignette inclusion.
Instructions
Build a source (or binary) package tarball using devtools::build().
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": "build"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Destination directory for the built tarball/zip (defaults to the parent of the package directory). | |
| binary | No | Whether to build a binary package instead of source (default false). | |
| vignettes | No | Whether to build vignettes (default true). | |
| project_path | Yes | Absolute path to the root of the R package. |