clearRcon: Clear the R Console / Focus on the RGui Window

Description Usage Arguments Details Author(s) See Also Examples

View source: R/supportFuns.r

Description

Clear the R console window or focus on the RGui window using Visual Basic shell scripts.

Usage

1
2
clearRcon(os=.Platform$OS.type)
focusRgui(os=.Platform$OS.type)

Arguments

os

operating system (e.g., "windows", "unix").

Details

Creates a VB shell script file called clearRcon.vbs or focusRgui.vbs in R's temporary working directory, then executes the script using the shell command.

While clearRcon clears the R console, focusRgui returns the desktop focus back to the RGui window.

These commands will only work on Windows operating platforms, using the system's executable
%SystemRoot%\system32\cscript.exe.

Author(s)

Norm Olsen, Pacific Biological Station, Fisheries and Oceans Canada, Nanaimo BC

See Also

cleanWD, clearPBSext, clearWinVal

Examples

1
2
3
4
5
6
7
## Not run: 
local(envir=.PBSmodEnv,expr={
  createWin( c("window title=Focus",
    "button text=\"Go to RGui\" width=20 bg=aliceblue func=focusRgui"), astext=T)
})

## End(Not run)

PBSmodelling documentation built on Dec. 27, 2017, 5:03 p.m.