R is the most widely used program in the statistical research community and has a vast range of statistical tools available. It is freely available on all common platforms.
Call R from J
J can be used as a front end to R, for example to provide data manipulation and a GUI for an R server.
For most applications, it is easiest to call R using the Rserver interface. This calls an R shared library running on the same machine. It is recommended for most serious uses of R from J.
The Rserve socket interface allows connections to an R instance, which can be anywhere on the network.
For occasional use, it may be simpler to call R in batch mode. In this case, the input and outputs to R are plain text files, which can be written and read from J. This works well for relatively static applications, where you know in advance exactly what R function is to be called and what format the results will have, so that the text files can be created and read easily.
If your application only runs under Windows, you can call R using the Windows DCOM server. This has the advantage over batch mode in that values are passed directly between J and R using COM, so that some data conversion is done automatically. Also, as with the Rserve interface, an R session is maintained, so a series of commands can be sent to the R server.
The interfaces are in JAL addon stats/r. Source is in Subversion at JSvnAddons:stats/r .
Call J from R
The Jserver4R interface allows calling J from R using a shared library.