comThis {rcom}R Documentation

Return the COM Object for this R Instance

Description

Returns the COM object for this R Instance.

Use this function to e.g. pass a handle to the running R COM server to another COM obejct.

The object will be released automatically when the last reference to the object is removed. To speed up this process, assign some NULL value as soon as you don't need the object any more.

Usage

comThis()

Value

comThis returns an object of class "COMObject" representing the IStatConnector/IDispatch of the current R.

Author(s)

Thomas Baier

Examples

# get access to R
## Not run: x<-comThis();

# do something with R
## Not run: comInvoke(x,"SetSymbol","abc",1);

[Package rcom version 2.2-1 Index]