use_pipe
Add the magrittr pipe (%>%) to an R package by creating utils-pipe.R and updating NAMESPACE, with an option to control exporting the operator.
Instructions
Add the magrittr pipe (%>%) to the package via usethis::use_pipe(). Creates utils-pipe.R and updates NAMESPACE.
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_pipe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| export | No | Whether to export the pipe operator (default true). | |
| project_path | Yes | Absolute path to the root of the R package. |