inventionate / prompt

Dynamic R prompt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Once on CRAN, install the package with:

install.packages("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

About

Dynamic R prompt

License:Other


Languages

Language:R 100.0%