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.
foreignReference(obj, id="", className=NULL, targetClasses=NULL, register=TRUE)
TRUE
), or otherwise
just a local object created to represent the R value without making
it accessible remotely. If no value for id
is supplied and
the reference is registered, a counter used to generate unique
references is incremented. (Is this true?)
foreignReference
.
.Java
.JavaConstructor
data(mtcars)
foreignReference(mtcars, targetClasses="DataFrameInt")
Run the code above in your browser using DataLab