[R] newbie - clear console

Uwe Ligges ligges at statistik.uni-dortmund.de
Fri Jul 16 08:19:39 CEST 2004


Rolf Turner wrote:

> Paolo Covelli wrote:
> 
> 
>>does it exist a sintax-comand to clear thre console (the screen)?
>>I've finded nothing on the standard manuals. (apart from the manual
>>comand CTRL+L)
> 
> 
> You don't say what operating system you're using .....
> 
> Anyhow, as far as I know there is no built-in to clear the screen.
> But one is easy to build.  On a Unix system you could do
> 
> 	cl <- function(){system("clear")}
> 
> then executing cl() will clear the screen for you.
> 
> On a Windoze system I think replacing ``clear'' by ``cls''
> in the definition of cl() should work.

That's true for the Windows shell, but for RGui there's no R function.

Uwe Ligges


> 				cheers,
> 
> 					Rolf Turner
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html




More information about the R-help mailing list