Create simple shortcuts for R commands
Requires Go 1.26 or later.
go install github.com/devOpifex/r@latestMake sure $(go env GOPATH)/bin is on your PATH.
Config file ~/.rconfig:
[
{
"name": "d",
"command": "devtools::document()"
},
{
"name": "i",
"command": "devtools::install()"
},
{
"name": "c",
"command": "devtools::check()"
}
]Usage: r d c i
Place any number of commands in the config file and run r <command>.
- Commands are executed in order.
- Exits if command errors.