Adding the R Support bundle to your project
To use the R plug-in, you need only add the
R Support bundle to your project in
Software AG Designer. For details on how to add bundles to projects, see
Bundle instances.
Adding the R Support bundle to your project makes the RPlugin.mon file available to the monitors in your project. When you run your project, Software AG Designer automatically injects the RPlugin.mon file. If you want to examine this file, you can find it in the monitors/R directory of your Apama installation.
The file RPlugin.mon is the interface between the monitors in your application and the R plug-in. Your application creates an RConnection event using the static open() action in the RFactory event, and it then calls set() or evaluate() actions on the RConnection event to communicate with R. There is never any need to import or call the plug-in directly.