APS Excellence in Physics Education Award
November 2019

Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

Working with OpenSourcePhysics from R post and replies

Return to the Working with OpenSourcePhysics from R thread
Login to post to this thread

Statistics with R on OSP
Alfonso R. Reyes
9 Posts

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

Twitter:    fonzie@OilGains
LinkedIn:  https://www.linkedin.com/in/alfonsorreyes/


Replies to Statistics with R on OSP

Re: Statistics with R on OSP -
Estel Jordan
1 Posts

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.

Estel at essaydune .ltd.



OSP Projects:
Open Source Physics - EJS Modeling
Tracker
Physlet Physics
Physlet Quantum Physics
STP Book