[R] SUMMARY control L to clear the Rgui screen in Windows

From: Charles Annis, P.E. <Charles.Annis_at_statisticalengineering.com>
Date: Fri 29 Sep 2006 - 03:15:09 GMT


Eternal thanks to Jim Holtman and to Gabor Grothendieck who pointed me to this concise piece of code:

cls <- function() {

	require(rcom)
	wsh <- comCreateObject("Wscript.Shell")
	comInvoke(wsh, "SendKeys", "\014")
	invisible(wsh)

}

Perfect!

Thanks!

Charles Annis, P.E.

Charles.Annis@StatisticalEngineering.com phone: 561-352-9699
eFax: 614-455-3265
http://www.StatisticalEngineering.com  

-----Original Message-----
From: r-help-bounces@stat.math.ethz.ch
[mailto:r-help-bounces@stat.math.ethz.ch] On Behalf Of Charles Annis, P.E. Sent: Thursday, September 28, 2006 10:13 PM To: R-help@stat.math.ethz.ch
Subject: [R] control L to clear the Rgui screen in Windows

Greetings R-ians:

Searching the Searchable Mail Archives I discovered that ctrl L will clear the Rgui screen, which is what I'd like to do from a print (or some similar) statement.

Is there a mechanism to use the ctrl L clear-screen sequence in a script, or print statement?

Thanks for your counsel.

Charles Annis, P.E.

Charles.Annis@StatisticalEngineering.com phone: 561-352-9699
eFax:  614-455-3265
http://www.StatisticalEngineering.com
 



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Fri Sep 29 13:19:09 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 29 Sep 2006 - 03:30:13 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.