Create simple shortcuts for R commands
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.