A custom R function
The Function Client API contains an evaluation method, which sends the function to be evaluated to the server.
For example, one version of the C#
Eval() method takes the following arguments:
- The name of the function to run.
- The package containing the function. (The package must be deployed to the server’s package repository and loaded in the open-source R or the TERR engine for the function to be found.)
- The function arguments, represented by the
SplusDataRequestobject that contains a collection of objects and/or an encapsulated data set. - A
JobStartupargument specifying whether to run the function synchronously or asynchronously, and (optionally) the time to run it.
Java provides a similar evaluation implementation.
See Java C# and URL APIs and Function evaluations.
- Finding Help
Help for using the APIs is available via your web browser on Spotfire Statistics Services.
Parent topic: Deploying a Package to Spotfire Statistics Services