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

Return to the General Comments forum
Login to post to this thread

Statistics with R on OSP - May 8 at 5:31PM
ALFONSO 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/


The OSP Network:
Open Source Physics - Tracker - EJS Modeling
Physlet Physics
Physlet Quantum Physics