Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Time stamp at R prompt possible? [duplicate]

Tags:

r

Possible Duplicate:
R: Display a time clock in the R command line

Is there any way to configure R so that it will display a time stamp before the prompt ">"?

Thanks a lot EC

like image 778
ECII Avatar asked Dec 12 '11 18:12

ECII


1 Answers

This will do it:

options(prompt=paste(Sys.time(),"> "))

I forget how to make it update though. I'll try to check when I get a sec...

Ahh found it:

updatePrompt <- function(...) {options(prompt=paste(Sys.time(),"> ")); return(TRUE)}
addTaskCallback(updatePrompt)
like image 88
John Colby Avatar answered Sep 20 '22 00:09

John Colby