Using Java methods in R
Thanks Icn, for suggesting .jaddClassPath I finally had time to play around and discover what you meant. So I am one step farther than the report in the second post above: I have the RGui with R Console on the screen. On the top pullDowns, Packages > Install Packages > USA(IA)> rJava
library(rJava)
.jinit()
## > ?rJava::.jaddClassPath
.jaddClassPath("C:/ad/j") ##or > .jaddClassPath("C:\\ad\\j")
print(.jclassPath())
[1] "C:\\Users\\ENVY17\\Documents\\R\\win-library\\2.12\\rJava\\java" [2] "C:\\ad\\j"
qsLin <- .jnew("CalqsLin")
dblTim <-
.jcall(qsLin,returnSig="D","linTimOfCalqsStgIsLev","201104052359599999","-4")
Error in .jcall(qsLin, returnSig = "D", "linTimOfCalqsStgIsLev", "201104052359599999", : method linTimOfCalqsStgIsLev with signature (Ljava/lang/String;Ljava/lang/String;)D not found
What's wrong?
Just to show my intentions,
I had next wanted to call this java function method:
linTimOfCalqsStgIsLev("201104052359599999",-4)
--
View this message in context: http://r.789695.n4.nabble.com/Using-Java-methods-in-R-tp3469299p3471705.html
Sent from the R help mailing list archive at Nabble.com.