prompt v1.0.0

Dynamic R Prompt

Set the R prompt dynamically, from a function.



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


Once on CRAN, install the package with:



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



MIT © Gábor Csárdi

Functions in prompt

Name Description
prompt_fancy A fancy prompt, showing probably too much information
prompt_devtools Example prompt that shows the package being developed with devtools
prompt_runtime A prompt that shows the CPU time used by the last top level expression
prompt_git An example 'git' prompt
prompt_error A prompt that shows the status (OK or error) of the last expression
set_prompt Set and control the prompt
prompt Dynamic R Prompt
prompt_memuse Example prompt that shows the current memory usage of the R process
No Results!


License MIT + file LICENSE
Remotes gaborcsardi/httrmock
Encoding UTF-8
LazyData true
RoxygenNote 6.1.1

Include our badge in your README