create_package
Creates a new R package skeleton at a specified path, setting up DESCRIPTION, NAMESPACE, and the R/ directory for package development.
Instructions
Create a new R package skeleton at the specified path using usethis::create_package(). Sets up DESCRIPTION, NAMESPACE, and the R/ directory.
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": {
"path": "<path>"
},
"name": "create_package"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| open | No | Whether to open the new package in RStudio (default false). | |
| path | Yes | Absolute path where the new package directory should be created (e.g. '/home/user/mypackage'). | |
| fields | No | Named list of extra DESCRIPTION fields, e.g. {Author: 'Jane Doe', Version: '0.1.0'}. |