Runiversal-package: Converts R objects to Java style interpretable codes and XML

Description Details Author(s) References Examples

Description

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.

Details

Package: Runiversal
Type: Package
Version: 1.0.1
Date: 2010-07-29
License: GPL
LazyLoad: yes

Author(s)

Mehmet Hakan Satman

Maintainer: Mehmet Hakan Satman <mhsatman@istanbul.edu.tr> http://www.mhsatman.com

References

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/

Examples

 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")

Runiversal documentation built on May 2, 2019, 8:23 a.m.