Description Usage Arguments Value Author(s) References See Also Examples
Create an object that is used to represent a local R object in a call to a foreign system (Java), optionally specifying a name by which it is to be stored locally and known externally and the name of one or more classes/interfaces that should be used to represent it. The last of these is interpreted by the remote system.
1 2 | foreignReference(obj, id="", className=NULL, targetClasses=NULL,
register=TRUE)
|
obj |
The R value/object that is to be represented by this reference. When methods are invoked on the reference, they are applied to this object. |
id |
An identifier for the reference by which it can be known to foreign systems and internally. This is just a name. |
className |
Name of the (R) class of this object. |
targetClasses |
The name of a class or of interfaces which the foreign system should use when representing this object. This allows the reference to implement different e.g. Java interfaces so it can be used as an argument to different methods. |
register |
A logical value indicating whether the object should
be “exported” by the foreign system ( |
An object of class foreignReference
.
Duncan Temple Lang, John Chambers
http://www.omegahat.org/RSJava
1 2 | data(mtcars)
foreignReference(mtcars, targetClasses="DataFrameInt")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.