Learn R Programming

rmsfuns (version 1.0.0.1)

PromptAsTime: PromptAsTime

Description

This changes Rstudio's prompt at the bottom to reflect time. Particularly useful for timing functions when executing long scripts.

Usage

PromptAsTime(On)

Arguments

On

set On to TRUE (Add time to prompter) or FALSE (use default prompter).

Value

The Prompter in Rstudio will now include the time.

Examples

Run this code
# NOT RUN {
PromptAsTime(TRUE)
x <- 100
Sys.sleep(3)
#' x*x
print(x)
# }

Run the code above in your browser using DataLab