renv_snapshot
Captures current R package dependencies and writes them to renv.lock, enabling reproducible project environments.
Instructions
Record the current package dependencies into renv.lock using renv::snapshot().
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_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Snapshot type: 'implicit' (DESCRIPTION), 'explicit' (renv.lock packages), 'all' (everything installed), or 'custom' (default 'implicit'). | implicit |
| project_path | Yes | Absolute path to the renv-managed project root. |