Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note

This

...

article documents an experimental API which is subject to changes or deletion in future versions of MO API. Use it at your own risks.

...

Exactly as Model Types, Model Objects evaluations and calculations do support the evaluation of R code.

Prerequisites

A An R server instance must be configured on the cluster running your Pricefx partition.

You can create an Helpdesk internal Pricefx helpdesk ticket for that, or if you have the sufficient rights, you can directly modify the kubernetes Kubernetes configuration of the corresponding cluster like it has been done here: https://gitlab.pricefx.eu/dev-ops/infra/core-qa-1/core_qa_1_eu-west-1_app_clusters/-/merge_requests/419.

Logic

Once the R server is configured, you can interact with it by using the RContext object reference obtained using model.rContext().

...