R is an integrated suite of software facilities for data manipulation, calculation and graphical display (http://www.r-project.org).
BioUML supports R script by R JavaScript host object.
R methods
| • | local - return RObject for locally installed R application using Java R Interface (JRI API). It's the fastest way for using R. |
Note: R_HOME environment variable should be set.
Example:
var rObject = R.local();
| • | rserve - return RObject for locally installed R application using RServe service. This type of RObject is more stable and recommended to use with locally installed R application |
Note: If RServe is not running the system will try to run it automatically, otherwise you should run it manually.
Example:
var rObject = R.rserve();
| • | connect - return RObject for remote R installation. In this case R should be installed on BioUML server. This method have two string parameters: |
host - address of BioUML server,
port - connection port
Example:
var rObject = R.connect("server.biouml.org", 80);