Skip to content
Prev 86717 / 398502 Next

how to clear screen in R-console?

Here is a version that uses rcom instead of RDCOMClient.
This has the advantage that rcom is on CRAN.

cls <- function() {
	require(rcom)
	wsh <- comCreateObject("Wscript.Shell")
	comInvoke(wsh, "SendKeys", "\014")
	invisible(wsh)
}
cls() # test
On 2/17/06, Gabor Grothendieck <ggrothendieck at gmail.com> wrote: