Skip to content
Prev 86718 / 398502 Next

how to clear screen in R-console?

On Thu, 16 Feb 2006, Henrik Bengtsson wrote:

            
On my terminal, this required the addition of cursor homing
to replicate the effects of using the OS to clear the screen.

system_cls <- function() system("clear")
vt100_cls  <- function() cat("\033[2J\033[H")

----------------------------------------------------------
SIGSIG -- signature too long (core dumped)