renv_install
Installs CRAN, GitHub, or version-pinned R packages into a project's renv library, keeping dependencies reproducible and locked to the project.
Instructions
Install packages into the renv project library using renv::install(). Supports CRAN packages, GitHub (user/repo), or version-pinned installs.
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": {
"packages": "<packages>",
"project_path": "<project_path>"
},
"name": "renv_install"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rebuild | No | Whether to rebuild packages from source (default false). | |
| packages | Yes | Package names (and optional version specifiers) to install, e.g. ['ggplot2', 'dplyr@1.0.0']. | |
| project_path | Yes | Absolute path to the renv-managed project root. |