prompt v1.0.0

Dynamic R Prompt

Set the R prompt dynamically, from a function.

Readme

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

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!

Details

License MIT + file LICENSE
URL https://github.com/gaborcsardi/prompt
BugReports https://github.com/gaborcsardi/prompt/issues
Remotes gaborcsardi/httrmock
Encoding UTF-8
LazyData true
RoxygenNote 6.1.1

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/prompt)](http://www.rdocumentation.org/packages/prompt)