Using the R extension in a Qlik Sense application

After our preparation in the previous section, the Qlik Sense box is ready to use R as SSE. Let's carry out a simple test to check if the R installation is running properly:

  1. Open Qlik Sense Desktop (or Enterprise) and create a new application, or open an existing one.
  2. Add a KPI with this simple expression that prints a math result (1+2): R.ScriptEvalStr('print(1+2)').
  3. Verify that the Qlik Sense KPI has an output that looks like this:

If it does not print exactly 3, we have to check the logs so that we have an idea about what went wrong. Close Qlik Sense and check the logs, particularly

Get Hands-On Business Intelligence with Qlik Sense now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.