install
Add an R package to the local R library via devtools while controlling dependency inclusion and upgrade behavior.
Instructions
Install the package into the local R library using devtools::install().
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": "install"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| upgrade | No | Whether to upgrade dependencies (default 'default'). | default |
| dependencies | No | Whether to install package dependencies (default TRUE for Imports/Depends/Suggests). | |
| project_path | Yes | Absolute path to the root of the R package. |