Hi,
The recent thread on how to send mail from R got me thinking about a
solution to clearing the rgui console under WinXP (something I've often
wanted to do and I've seen others ask about). If you create a small vb
script, say called "RClear.vbs":
Dim wsh
Set wsh = CreateObject("WScript.Shell")
wsh.AppActivate "R Console"
wsh.SendKeys "^L"
and copy this to the %windir%\system32 directory, you can create a function
in R:
clear.console <- function() {
system(paste(Sys.getenv("windir"),"/system32/cscript.exe
rclear.vbs",sep=""),
intern=F, invisible=T)
}
that will clear the the rgui console. Sorry for the redundancy if someone
has already posted a similar solution.
Norm Olsen
Fisheries and Oceans Canada
[[alternative HTML version deleted]]