use_github
Create a GitHub repository for an R package and push it, with optional private or organisation settings; requires a GitHub PAT via GITHUB_PAT or gh_token().
Instructions
Create a GitHub remote for the package and push using usethis::use_github(). Requires a GitHub PAT configured via GITHUB_PAT or gh_token().
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": "use_github"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| private | No | Create as a private repository (default false). | |
| organisation | No | GitHub organisation to create the repo under (optional, defaults to personal account). | |
| project_path | Yes | Absolute path to the root of the R package. |