R AE compilation

When working with R, compilation does not correspond to the typical process of creating machine code from source code, but rather preparing a user-provided source file to work with the R Adapter.

A tool that is dedicated to this purpose reads the R source file, checks whether the required objects exist, serializes these objects, and then writes the output to the Applications Directory. An input file is required for compile_ae. The R input file must contain a number of objects that are required by the R Adapter. Predefined object names have an nz. prefix that is internally removed when the serialization takes place, which is important for the nzLibrary for R client packages but not for processes on the server side. However, all objects present in the file are serialized and then available during the R AE execution.

The following table shows all the standard objects. The purpose for most of these objects is explained in the sections where extended functionality is described.
Table 1.
Object Description
nz.fun The main function object, this function is called when its AE is invoked.
nz.shaper The shaper function object.
nz.shaper.list A list defining the output signature, required when nz.shaper is not a function, but a std character value.
nz.mode A character value that defines the working mode; the default value is run.
nz.args A list of optional arguments for nz.fun.
nz.cols Required in the tapply working mode.
nz.init, nz.accum, nz.merge, nz.final Four functions that are required by user-defined aggregates (UDAs).