Get the Windows handle of a window or of the R process in MS Windows.
getWindowsHandle(which = "Console")
a string (see below), or the number of a graphics device
window (which must a
getWindowsHandle gets the Windows handle.
Possible choices for
||The console window handle.|
||The MDI frame window handle.|
||The process pseudo-handle.|
|A device number||The window handle of a graphics device|
These values are not normally useful to users, but may be used by developers making add-ons to R.
NULL is returned for the Frame handle if not running in MDI mode,
for the Console handle when running Rterm, for any unrecognized
which, or for a graphics device with no
Other windows (help browsers, etc.) are not accessible through this function.
An external pointer holding the Windows handle, or
This is only available on Windows.
if(.Platform$OS.type == "windows") print( getWindowsHandle() )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.