Skip to content

Latest commit

 

History

History
49 lines (29 loc) · 1.11 KB

README.md

File metadata and controls

49 lines (29 loc) · 1.11 KB

clj-jri

A simple wrapper library for JRI, Java/R interface, mostly to draw charts on R.

Preparation

You may need to install R library "JGR/rJava" (http://rforge.net/JGR/) on R by "install.packages('rJava')" and have to set the following environment variables.

(example)

export R_HOME=/usr/lib/R/
export LD_LIBRARY_PATH=./lib

You also need to place REngine.jar, JRI.jar and libjri.so from the original project site onto LD_LIBRARY_PATH.

To install the library locally, the following process is recommended.

lein clean
lein deps
lein compile
lein jar
lein uberjar
lein localrepo install ./target/clj-jri-0.0.1-standalone.jar clj-jri 0.0.1-standalone

Examples and notes

See clj-jri.sample for the example codes and notes on the usage.

TODOs

Additional features may be supported in the future, when necessary.

References

For detail, refer to https://github.com/s-u/rJava and to http://www.rosuda.org/r/nightly/javadoc/org/rosuda/JRI/Rengine.html

License

Copyright © 2014 Takahiro SAWADA

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.