Dynamic R Prompt
Set the R prompt dynamically, from a function. The package contains some examples. The prompt on the screenshot has:
- The status of the last command (success or failure).
- The amount of memory allocated by the current R process.
- The name of the R package being developed using devtools.
- Name of the active git branch.
- State of the git working tree (needs pushes, pulls, and/or dirty).
devtools::install_github("gaborcsardi/prompt")
Use the prompt_fancy
prompt, as on the screenshot, or create your own.
library(prompt)
set_prompt(prompt_fancy)
MIT © Gábor Csárdi