/prompt

Dynamic R prompt

Primary LanguageROtherNOASSERTION

prompt

Dynamic R Prompt

Project Status: WIP - Initial development is in progress, but there has not yet been a stable, usable release suitable for the public. Linux Build Status Windows Build status CRAN RStudio mirror downloads

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).

Installation

devtools::install_github("gaborcsardi/prompt")

Usage

Use the prompt_fancy prompt, as on the screenshot, or create your own.

library(prompt)
set_prompt(prompt_fancy)

License

MIT © Gábor Csárdi