Welcome to "KB Articles"
What is the terrJava equivalent of the CRAN "rJava" package's .jlong() function?
book
Article ID: KB0080899
calendar_today
Updated On:
Products
Versions
Spotfire Enterprise Runtime for R
All Versions
Show More
Show Less
Description
What is the terrJava equivalent of the CRAN "rJava" package's .jlong() function?
Issue/Introduction
This articles provides information about the terrJava equivalent of the CRAN "rJava" package's .jlong() function
Resolution
The .JavaRef() function in TERR's "terrJava" package can be used to create/convert an array of objects of type "long" <[J> to pass to a Java method.
For example:
myObject <- c(111111111111, 222222222222, 333333333333) myObject <- .JavaRef(myObject, "[J")
Additional Information
Doc: Access Java Object References
https://docs.tibco.com/pub/enterprise-runtime-for-R/4.4.1/doc/html/Language_Reference/terrJava/dotJavaRef.html
Feedback
thumb_up
Yes
thumb_down
No