renv_init
Initialise a project-local R dependency library with renv, creating renv/ and renv.lock and updating .Rprofile to make package environments reproducible.
Instructions
Initialise an renv project-local library for the project using renv::init(). Creates renv/ and renv.lock, and updates .Rprofile.
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": "renv_init"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bare | No | If TRUE, initialise without installing any packages into the new library (default false). | |
| restart | No | Whether to restart the R session after initialising (default false). | |
| project_path | Yes | Absolute path to the project root where renv should be initialised. |