Skip to content
Prev 86703 / 398502 Next

how to clear screen in R-console?

Here is a translation of Norm Olsen's vbscript code into pure R.
This is intended for use with the Windows Rgui interface.

cls <- function() {
	require(RDCOMClient)
	wsh <- COMCreate("Wscript.Shell")
	wsh$SendKeys("\014")
	invisible(wsh)
}
cls()  # invoke
On 2/17/06, Marcus Leinweber <leinweber at neuro.mpg.de> wrote: