Re: [R] Using Java methods in R

From: hill0093 <hill0093_at_umn.edu>
Date: Sun, 24 Apr 2011 09:30:31 -0700 (PDT)

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.

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Sun 24 Apr 2011 - 16:33:21 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 24 Apr 2011 - 20:20:32 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive