• Stars
    star
    215
  • Rank 177,396 (Top 4 %)
  • Language
    R
  • License
    Other
  • Created about 8 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Dynamic R prompt

prompt

Dynamic R Prompt

Lifecycle Status R build status

Set the R prompt dynamically, from a function. The package contains some examples.

Examples

This is prompt_fancy() and it 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).

A powerline clone, that also shows the system load average and the current working directory.

Installation

Install the package from CRAN, as usual:

install.packages("prompt")

Usage

Use one of the pre-defined prompts, as on the screenshots, or create your own. You can set the prompt in your .Rprofile. Maybe you only want to do this in interactive mode:

if (interactive()) prompt::set_prompt(prompt::prompt_fancy)

or the powerline prompt:

if (interactive()) prompt::set_prompt(prompt::new_prompt_powerline())

License

MIT © Gábor Csárdi

More Repositories

1

notifier

Cross platform desktop notifications from R
Objective-C
126
star
2

secret

🔐 Secure sharing of sensitive information in R packages
R
100
star
3

dotenv

Load environment variables from .env in R
R
71
star
4

parsedate

R package to parse dates given in arbitrary formats
C
63
star
5

maxygen

❗ OUTDATED Markdown + Roxygen = Maxygen
R
53
star
6

tamper

Easier debugging of magrittr pipes
R
46
star
7

rencfaq

42
star
8

rcorpora

R package with a collection of small corpuses of interesting data, from https://github.com/dariusk/corpora
R
39
star
9

async

Asynchronous HTTP and computation in R
R
36
star
10

argufy

Declarative function argument checks
R
31
star
11

alexr

R package to catch insensitive, inconsiderate writing
R
26
star
12

keypress

Read individual keys in R without waiting for an ENTER
C
22
star
13

falsy

R package for falsy and truthy values
R
21
star
14

roxygenlabs

Experimental roxygen tags and extensions
R
19
star
15

ask

Friendly CLI interaction in R
R
19
star
16

after

Run Code in the Background
R
15
star
17

spark

Sparklines in the R terminal
R
13
star
18

disposables

Create disposable R packages, for testing
R
11
star
19

macBriain

Say error messages aloud on a Mac, including advice :)
R
7
star
20

ISA

Iterative Signature Algorithm and related tools
ActionScript
6
star
21

altlist

Test package for ALTREP lists
C
4
star
22

butcher

R
4
star
23

r-font

R logo in a font
CSS
3
star
24

r-source

R source code for experiments and patches
R
3
star
25

fswatch

Watch a File or Directory for Changes
R
2
star
26

keynote

Work with Keynote documents from R (VERY EXPERIMENTAL!)
AppleScript
2
star
27

standalones

Standalone R files for various tasks
R
2
star
28

installgithub.app

Install an R package from GitHub, with a one liner
R
2
star
29

format

C
1
star