Although not asked directly, there seems to be an implicit
thread around how to embed R in other applications.
There are a large number of entry points in the R executable/DLL that can be called from C. See
Writing R Extensions for details on the R API, as well as details for linking GUIs and other front-ends to R.
The
RInside package provides C++ classes that facilitate embedding R functionality in C++ code on Linux, OS X, and Windows. An excellent blog on the subject can be found
here.
Rserve is a "a TCP/IP server which allows other programs to use facilities of R from various languages without the need to initialize R or link against R library. Every connection has a separate workspace and working directory. Client-side implementations are available for popular languages such as C/C++, PHP and
Java. Rserve supports remote connection, authentication and file transfer. Typical use is to integrate R backend for computation of statstical models, plots etc. in other applications."
There are many examples of calling R from Java, including
rJava and
RCaller.
There are numerous Web based inferfaces to R that take submitted code, runs R on the code (batch mode), and returns text and graphical output as web pages. See
Rweb for an example.
I hope this helps.
Rob