This is an interface to J64 for R on Windows/Mac/Linux. It requires J807 Beta-b or later.
R loads a shared library to call J installed on the same machine.
For now, the interface supports arbitrary logical, integer and floating point arrays, as well as character strings and J boxed lists. The interface can be extended to support additional datatypes.
Install the addon stats/jserver4r in the usual way.
The distributed script jserver.R has typical cover functions. You should copy and update this script for your own use.
The addon is initialized by calling the shared library, e.g. jserver4r.dll in Windows. The shared libraries are distributed in ~addons/stats/jserver4r/lib with source in the Public repository at stats/r/jserver4r/lib/.
The distributed shared libraries should work on most platforms. If necessary, see the Public repository file libs.txt for information on rebuilding the libraries.
The shared library must be able to load the J engine in the path defined in jserver.R. Ensure that the J engine loaded is the right version, and not an earlier version that had been previously installed. If necessary, set an environment variable so that it is available, for example on macOS: