This package contains two main functions called makejava and makexml. makejava function converts R objects to Java codes which is interpretable by Bean Shell or Dynamic Java. Other function, makexml, converts R objects to XML code for handling R object in other languages. Both of these functions can be used for calling R codes from other languages without using native codes.
Mehmet Hakan Satman
Maintainer: Mehmet Hakan Satman <email@example.com> http://www.mhsatman.com
See http://www.mhsatman.com/rcaller for calling R from Java without JNI. Bean Shell is a library for scripting Java language that downloadable for free in http://www.beanshell.org/
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#Getting estimates from regression object as Java variables that be directly interpretable by Bean Shell. x<-1:10 y<-rnorm(10) ols<-lm(y~x) betas<-ols$coefficients cat(makejava(betas,"myBetas")) #Getting summary report as Java variables cat(makejava(summary(ols))) #Getting regression results as xml cat(makexml(ols)) #Saving xml to file cat(makexml(ols), file="somefile.xml")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.