use_data
Export R objects already loaded in the workspace as package data files under data/ using usethis::use_data, with an option to overwrite existing files.
Instructions
Export one or more R objects as package data files under data/ using usethis::use_data(). The objects must already be loaded in the R environment.
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": {
"object_names": "<object_names>",
"project_path": "<project_path>"
},
"name": "use_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| overwrite | No | Overwrite existing data files (default false). | |
| object_names | Yes | Character vector of R object names already loaded in the workspace to export as package data. | |
| project_path | Yes | Absolute path to the root of the R package. |