set_prompt: Set the dynamic prompt

Description Usage Arguments Examples

View source: R/set_prompt.R

Description

Set the dynamic prompt

Usage

1
2
3
4
5

Arguments

fun

whatever as_function can turn into a function with no parameters

Examples

1
2
3
4
5
set_prompt( ~"R> " )
set_prompt( ~paste( format(Sys.time(), "%H:%M:%S"), " > " ) )

# example using glue
set_prompt( ~ "{getwd()} >" )

ThinkR-open/prompt documentation built on May 6, 2019, 3:28 p.m.