R plug-in samples
Sample code for using the R plug-in is provided in the samples/monitorscript/RPlugin directory of your Apama installation. See the README.txt file in that directory for more information.

The file
RPluginSample.mon demonstrates how to set and get variables of different types from R, how to create a matrix using an R script and get the dimensions, and how to load an R script from an external file.

The file
AsyncR.mon demonstrates an asynchronous R service running in a dedicated context where requests and responses are sent via events.