Hello, I am trying to generate some simulations to perform statistical studies using OSP by calling the Java libraries from R.
So far, I have had some success: plots work, simulations open and run, but they crash R when I close any simulation. Also, I can see the data being generated by OSP in real time inside the R console.
I have prepared an R-OSP environment in Eclipse. I am publishing it in Github in case someone is interested and dare to explore further. It's lots of fun.
This is the link to the repository: https://github.com/AlfonsoRReyes/r-java-opensourcephysics
I am using RStudio with the latest R version 3.4.0 in 64-bits. The Java version which I used for testing is Java 8 131. You will need to install the rJava package to be able to talk to Java from R.
I have created few notebooks in R (.Rmd files) to test run the R and Java code.
I will continue uploading a few more in the following days.
Please, let me know if you have any questions,
Alfonso R. Reyes Petroleum Engineer Houston, Texas
This is an old inquiry.. however, for anybody perusing through here that is as yet intrigued: I composed a blog article that gives a definite case of how to utilize JRI/rjava (a JNI based extension) to do this sort of thing (the how-to is centered around Linux dev situations). I likewise look into elective methodologies for doing "mathy" stuff by shouting to R and comparative systems.