Description Usage Arguments Value Author(s) References See Also Examples
This manipulates the internal list of object converters that control how objects are transferred from R to Java and from Java to R. It allows the R user to remove entries and control how objects are converted.
1 | removeJavaConverter(id, fromJava=TRUE)
|
id |
the index or position of the converter to be removed in the specified converter list. |
fromJava |
logical value indicating which set of converters
on which we are operating: from Java to R ( |
Returns a integer identifying the position in the list in which the converter was located. This is a named vector and the name is the description of the converter. This allows one to ensure that you got the correct one.
Duncan Temple Lang
http://www.omegahat.org/RSJava
setJavaConverter
setJavaConvertible
the .convert
argument of
.Java
and .JavaConstructor
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | # remove the Constructor converter
## Not run:
removeJavaConverter(3)
# add a converter -- userObject must be valid
setJavaConverter(.RSJava.symbol("RealVariableConverter"),
matcher="AssignableFrom",
autoArray=TRUE,
description="Omegahat RealVariable to numeric vector",
userObject="RealVariable")
# and remove it by specifying its description.
removeJavaConverter("Omegahat RealVariable to numeric vector")
# add the converter again
cvt <- setJavaConverter(.RSJava.symbol("RealVariableConverter"),
matcher="AssignableFrom",
autoArray=TRUE,
description="Omegahat RealVariable to numeric vector",
userObject="RealVariable")
# and remove it by specifying its position
# which is given to us by the setJavaConverter call.
removeJavaConverter(cvt$index)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.