<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>article R Integration with Qlik Sense in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/R-Integration-with-Qlik-Sense/ta-p/1717165</link>
    <description>&lt;H3&gt;How to get started with R-Script integration within Qlik Sense&lt;/H3&gt;
&lt;P&gt;&lt;BR /&gt;The architecture of the integration at a High-level looks like this:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rintegration.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/35611iC2B1B8AAF3BBB04C/image-size/large?v=v2&amp;amp;px=999" role="button" title="rintegration.png" alt="rintegration.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Qlik Sense Advanced Analytics integration is essentially an extension to Qlik Sense’s expression syntax, and as such it can be used in both Chart Expressions, and in Load Script Expressions.&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With this new capability, we are now able to add syntax to a chart expression that tells Qlik Sense that particular expression should not be evaluated on the Qlik Sense server, but instead, all the information and data needed to calculate that expression should be sent&amp;nbsp;via the server side extension on to the backend R system for calculation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;After the advanced analytic calculations are completed, the data is sent back to the Qlik Sense Server and to the client for visualization.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;Environment:&lt;/H3&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;LI-PRODUCT title="Qlik Sense Enterprise on Windows" id="qlikSenseEnterpriseWindows"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;, all versions&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;Resolution:&lt;/H3&gt;
&lt;P&gt;This video shows an example of how Qlik Sense connects to an R server for extending expression capabilities in Qlik Sense Apps while offloading the calculations to the R server engine.&lt;/P&gt;
&lt;P&gt;&lt;div class="video-embed-center video-embed"&gt;&lt;iframe class="embedly-embed" src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F_AEJ3dnsjdA%3Ffeature%3Doembed&amp;amp;display_name=YouTube&amp;amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D_AEJ3dnsjdA&amp;amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F_AEJ3dnsjdA%2Fhqdefault.jpg&amp;amp;type=text%2Fhtml&amp;amp;schema=youtube" width="600" height="337" scrolling="no" title="Qlik Fix: How to Use Analytic Connections to Enable Server-Side-Extension (SSE) in Qlik Sense" frameborder="0" allow="autoplay; fullscreen; encrypted-media; picture-in-picture;" allowfullscreen="true"&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Fix/Qlik-Fix-How-to-Use-Analytic-Connections-to-Enable-Server-Side/ta-p/1780929" target="_blank" rel="noopener"&gt;Click here for Video Transcript&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In order to start displaying a simple "Hello World" in Qlik Sense using a R-Script, we will do the following:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT size="5"&gt;1.&lt;/FONT&gt;&lt;/STRONG&gt; Have R &amp;amp; R-studio installed in your system. (RGui included with R for Windows can also be used) R can be downloaded at&amp;nbsp;&lt;A href="https://cloud.r-project.org/" target="_self"&gt;https://cloud.r-project.org/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT size="5"&gt;2.&lt;/FONT&gt;&lt;/STRONG&gt; We need a package in R to&amp;nbsp;extend R functionality to applications via TCP/IP. The package name is &lt;STRONG&gt;"Rserve()"&lt;/STRONG&gt;&lt;BR /&gt;Install the package using the below command in RStudio GUI:&lt;/P&gt;
&lt;PRE&gt;install.packages('Rserve')&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT size="5"&gt;3.&lt;/FONT&gt;&lt;/STRONG&gt; Now we need to invoke that library and start Rserve. In order to do so, execute the below scripts:&lt;/P&gt;
&lt;PRE&gt;library(Rserve)
Rserve()&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT size="5"&gt;4.&lt;/FONT&gt;&lt;/STRONG&gt;The communication method from Sense to R is taken care using gRPC.&amp;nbsp;R is not a supported language in gRPC by default.&lt;BR /&gt;&lt;BR /&gt;So a possible solution for this is to develop a connector in any of the supported languages of gRPC. Qlik provides an open-source connector developed in C# which in turn access Rserve to be able to run R scripts.&lt;BR /&gt;&lt;A href="https://github.com/qlik-oss/sse-r-plugin" target="_blank" rel="noopener"&gt;qlik-oss/sse-r-plugin&lt;/A&gt;&lt;BR /&gt;Once you built the connector,&amp;nbsp; start the&amp;nbsp;SSEtoRserve.exe (ideally on the Rserve server itself)&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; Qlik Support does not support this plugin directly. Inquiries should be submitted via GitHub under &lt;A href="https://github.com/qlik-oss/sse-r-plugin/issues" target="_blank" rel="noopener"&gt;sse-r-plugin - Issues&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT size="5"&gt;5.&lt;/FONT&gt;&lt;/STRONG&gt; Now we will have to configure the plugin:&lt;/P&gt;
&lt;H4&gt;For Qlik Sense Desktop June 2019 and up:&lt;/H4&gt;
&lt;P&gt;Add the following line in the &lt;FONT face="courier new,courier"&gt;settings.ini&lt;/FONT&gt; file:&lt;/P&gt;
&lt;PRE&gt;SSEPlugin=R,localhost:50051&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;The &lt;FONT face="courier new,courier"&gt;settings.ini&lt;/FONT&gt; is located in this location:&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;C:\Users\[userid]\AppData\Local\Programs\Qlik\Sense\Engine\settings.ini&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;H4&gt;For previous Qlik Sense Desktop:&lt;/H4&gt;
&lt;P&gt;Add the following line in the &lt;FONT face="courier new,courier"&gt;settings.ini&lt;/FONT&gt; file:&lt;/P&gt;
&lt;PRE&gt;SSEPlugin=R,localhost:50051&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;The &lt;FONT face="courier new,courier"&gt;settings.ini&lt;/FONT&gt; file is located in this location:&lt;/P&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;C:\Users\(username)\Documents\Qlik\Sense&lt;/FONT&gt;&lt;/DIV&gt;
&lt;H4&gt;For Qlik Sense Enterprise/Server:&lt;/H4&gt;
&lt;P&gt;a. In the QMC, add a new Analytic Connection.&lt;BR /&gt;b. Restart the Qlik Sense Engine service.&lt;BR /&gt;&lt;BR /&gt;Please refer to the screenshot below for creating a new connection.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; If the R-Plugin (&lt;FONT face="courier new,courier"&gt;SSEtoRserve.exe&lt;/FONT&gt;) was installed on the R-Server (where Rserve runs) or another machine, point to that machine name instead of '&lt;FONT face="courier new,courier"&gt;localhost&lt;/FONT&gt;'. Also, in multi-node environments with multiple Qlik Sense Engines, even if the plugin was installed on the Central node, make sure to add the Central node's hostname instead of 'localhost' as the other Rim node Engine services need the correct DNS/Netbios name to reach the plugin.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rintegration2.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/35612i669A280E99705CA1/image-size/large?v=v2&amp;amp;px=999" role="button" title="rintegration2.png" alt="rintegration2.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT size="5"&gt;6. &lt;/FONT&gt;&lt;/STRONG&gt;Now Open a Qlik Sense App and add a KPI object in the sheet. This can be one of the Apps included with the&amp;nbsp; plugin itself under &lt;FONT face="courier new,courier"&gt;&amp;lt;storage path&amp;gt;\sse-r-plugin-master\sense_apps&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt; that the example apps also need data connections to be created to the data files included with these apps files in the above location.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT size="5"&gt;7.&lt;/FONT&gt;&lt;/STRONG&gt;&amp;nbsp;Otherwise, a new app can be created and any data may be loaded for the SSE example below.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT size="5"&gt;8. &lt;/FONT&gt;&lt;/STRONG&gt;For the measure, add the following expression which contains an R-script:&lt;/P&gt;
&lt;PRE&gt;R.ScriptEvalStr(&lt;STRONG&gt;'paste(q$firstWord, q$secondWord)&lt;/STRONG&gt;;&lt;STRONG&gt;'&lt;/STRONG&gt;, 'Hello' as firstWord, 'World' as secondWord)&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT size="5"&gt;9. &lt;/FONT&gt;&lt;/STRONG&gt;If everything is configured properly, the R-script shown in bold above should be executed fine and it should display a &lt;FONT face="courier new,courier"&gt;"Hello World"&lt;/FONT&gt; message.&lt;/P&gt;
&lt;H4&gt;&amp;nbsp;&lt;/H4&gt;
&lt;H4&gt;Understanding the R-script &amp;amp; Function:&lt;/H4&gt;
&lt;PRE&gt;R.ScriptEvalStr('paste(q$firstWord, q$secondWord);', Only([First Word]) as firstWord, Only([Second Word]) as secondWord)&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;Eight script functions are automatically added to the functionality of&amp;nbsp;the plugin. What is needed to be covered on the plugin side to fulfill the functionality is to implement the &lt;SPAN&gt;EvaluateScript &lt;/SPAN&gt;rpc function.&lt;BR /&gt;&lt;BR /&gt;The syntax of these functions is:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;lt;EngineSSEName&amp;gt;.&amp;lt;FunctionName&amp;gt;(Script [,Parameter...])&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;Where the &lt;FONT face="courier new,courier"&gt;Script&lt;/FONT&gt; is an R-Script to be evaluated &amp;amp; &lt;FONT face="courier new,courier"&gt;Parameter&lt;/FONT&gt; is the data sent from Qlik's end.&lt;BR /&gt;&lt;BR /&gt;Here, we use the &lt;SPAN&gt;ScriptEvalStr &lt;/SPAN&gt;function which accepts argument of type String &amp;amp; returns a String. The&lt;FONT face="courier new,courier"&gt; 'paste'&lt;/FONT&gt; function in R concatenates vectors after converting to character. We pass two data fields of type string from Qlik (First Word &amp;amp; Second Word).&amp;nbsp;The R-script then references these data fields through the &lt;SPAN&gt;q dataframe&amp;nbsp;&lt;/SPAN&gt;(structure already taken care in R)&amp;nbsp;(&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;q$firstWord &lt;/SPAN&gt;&lt;/FONT&gt;and&lt;FONT face="courier new,courier"&gt; &lt;SPAN&gt;q$secondWord&lt;/SPAN&gt;&lt;/FONT&gt;). The script/function finally returns a String back&amp;nbsp;to Qlik Sense.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;Related Content:&lt;/H3&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://help.qlik.com/en-US/sense-admin/Subsystems/DeployAdministerQSE/Content/Sense_DeployAdminister/QSEoW/Administer_QSEoW/Managing_QSEoW/analytic-connections-overview.htm" target="_blank" rel="noopener"&gt;Analytic Connections - Qlik Sense for Administrators&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptRegularStatements/Load.htm" target="_blank" rel="noopener"&gt;Script Regular Statements - Load - Qlik Sense on Windows&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://community.qlik.com/t5/Support-Knowledge-Base/Creating-an-Advanced-Analytics-Server-in-15-minutes-using-AWS/ta-p/1512977" target="_blank" rel="noopener"&gt;Creating an Advanced Analytics Server in 15 minutes using AWS&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://community.qlik.com/t5/Support-Knowledge-Base/Qlik-Server-Side-Extension-SSE-with-Analytic-Connections/ta-p/1715066" target="_blank" rel="noopener"&gt;Qlik Server-Side Extension (SSE) with Analytic Connections&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://community.qlik.com/t5/Support-Knowledge-Base/Getting-Started-with-Advanced-Analytics-in-Qlik-Sense-using/ta-p/1711379" target="_blank" rel="noopener"&gt;Getting Started with Advanced Analytics in Qlik Sense using Python&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://community.qlik.com/t5/Support-Knowledge-Base/How-to-call-an-external-custom-function-in-Qlik-Sense/ta-p/1713478" target="_blank" rel="noopener"&gt;How to call an external / custom function in Qlik Sense?&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://community.qlik.com/t5/Support-Knowledge-Base/Qlik-Sense-Analytic-Connection-SSE-Error-when-reloading-App/ta-p/1713855" target="_blank" rel="noopener"&gt;Qlik Sense Analytic Connection (SSE) Error when reloading App&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Tue, 23 Feb 2021 09:26:23 GMT</pubDate>
    <dc:creator>Sonja_Bauernfeind</dc:creator>
    <dc:date>2021-02-23T09:26:23Z</dc:date>
    <item>
      <title>R Integration with Qlik Sense</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/R-Integration-with-Qlik-Sense/ta-p/1717165</link>
      <description>&lt;H3&gt;How to get started with R-Script integration within Qlik Sense&lt;/H3&gt;
&lt;P&gt;&lt;BR /&gt;The architecture of the integration at a High-level looks like this:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rintegration.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/35611iC2B1B8AAF3BBB04C/image-size/large?v=v2&amp;amp;px=999" role="button" title="rintegration.png" alt="rintegration.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Qlik Sense Advanced Analytics integration is essentially an extension to Qlik Sense’s expression syntax, and as such it can be used in both Chart Expressions, and in Load Script Expressions.&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With this new capability, we are now able to add syntax to a chart expression that tells Qlik Sense that particular expression should not be evaluated on the Qlik Sense server, but instead, all the information and data needed to calculate that expression should be sent&amp;nbsp;via the server side extension on to the backend R system for calculation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;After the advanced analytic calculations are completed, the data is sent back to the Qlik Sense Server and to the client for visualization.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;Environment:&lt;/H3&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;LI-PRODUCT title="Qlik Sense Enterprise on Windows" id="qlikSenseEnterpriseWindows"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;, all versions&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;Resolution:&lt;/H3&gt;
&lt;P&gt;This video shows an example of how Qlik Sense connects to an R server for extending expression capabilities in Qlik Sense Apps while offloading the calculations to the R server engine.&lt;/P&gt;
&lt;P&gt;&lt;div class="video-embed-center video-embed"&gt;&lt;iframe class="embedly-embed" src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F_AEJ3dnsjdA%3Ffeature%3Doembed&amp;amp;display_name=YouTube&amp;amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D_AEJ3dnsjdA&amp;amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F_AEJ3dnsjdA%2Fhqdefault.jpg&amp;amp;type=text%2Fhtml&amp;amp;schema=youtube" width="600" height="337" scrolling="no" title="Qlik Fix: How to Use Analytic Connections to Enable Server-Side-Extension (SSE) in Qlik Sense" frameborder="0" allow="autoplay; fullscreen; encrypted-media; picture-in-picture;" allowfullscreen="true"&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Fix/Qlik-Fix-How-to-Use-Analytic-Connections-to-Enable-Server-Side/ta-p/1780929" target="_blank" rel="noopener"&gt;Click here for Video Transcript&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In order to start displaying a simple "Hello World" in Qlik Sense using a R-Script, we will do the following:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT size="5"&gt;1.&lt;/FONT&gt;&lt;/STRONG&gt; Have R &amp;amp; R-studio installed in your system. (RGui included with R for Windows can also be used) R can be downloaded at&amp;nbsp;&lt;A href="https://cloud.r-project.org/" target="_self"&gt;https://cloud.r-project.org/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT size="5"&gt;2.&lt;/FONT&gt;&lt;/STRONG&gt; We need a package in R to&amp;nbsp;extend R functionality to applications via TCP/IP. The package name is &lt;STRONG&gt;"Rserve()"&lt;/STRONG&gt;&lt;BR /&gt;Install the package using the below command in RStudio GUI:&lt;/P&gt;
&lt;PRE&gt;install.packages('Rserve')&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT size="5"&gt;3.&lt;/FONT&gt;&lt;/STRONG&gt; Now we need to invoke that library and start Rserve. In order to do so, execute the below scripts:&lt;/P&gt;
&lt;PRE&gt;library(Rserve)
Rserve()&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT size="5"&gt;4.&lt;/FONT&gt;&lt;/STRONG&gt;The communication method from Sense to R is taken care using gRPC.&amp;nbsp;R is not a supported language in gRPC by default.&lt;BR /&gt;&lt;BR /&gt;So a possible solution for this is to develop a connector in any of the supported languages of gRPC. Qlik provides an open-source connector developed in C# which in turn access Rserve to be able to run R scripts.&lt;BR /&gt;&lt;A href="https://github.com/qlik-oss/sse-r-plugin" target="_blank" rel="noopener"&gt;qlik-oss/sse-r-plugin&lt;/A&gt;&lt;BR /&gt;Once you built the connector,&amp;nbsp; start the&amp;nbsp;SSEtoRserve.exe (ideally on the Rserve server itself)&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; Qlik Support does not support this plugin directly. Inquiries should be submitted via GitHub under &lt;A href="https://github.com/qlik-oss/sse-r-plugin/issues" target="_blank" rel="noopener"&gt;sse-r-plugin - Issues&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT size="5"&gt;5.&lt;/FONT&gt;&lt;/STRONG&gt; Now we will have to configure the plugin:&lt;/P&gt;
&lt;H4&gt;For Qlik Sense Desktop June 2019 and up:&lt;/H4&gt;
&lt;P&gt;Add the following line in the &lt;FONT face="courier new,courier"&gt;settings.ini&lt;/FONT&gt; file:&lt;/P&gt;
&lt;PRE&gt;SSEPlugin=R,localhost:50051&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;The &lt;FONT face="courier new,courier"&gt;settings.ini&lt;/FONT&gt; is located in this location:&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;C:\Users\[userid]\AppData\Local\Programs\Qlik\Sense\Engine\settings.ini&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;H4&gt;For previous Qlik Sense Desktop:&lt;/H4&gt;
&lt;P&gt;Add the following line in the &lt;FONT face="courier new,courier"&gt;settings.ini&lt;/FONT&gt; file:&lt;/P&gt;
&lt;PRE&gt;SSEPlugin=R,localhost:50051&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;The &lt;FONT face="courier new,courier"&gt;settings.ini&lt;/FONT&gt; file is located in this location:&lt;/P&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;C:\Users\(username)\Documents\Qlik\Sense&lt;/FONT&gt;&lt;/DIV&gt;
&lt;H4&gt;For Qlik Sense Enterprise/Server:&lt;/H4&gt;
&lt;P&gt;a. In the QMC, add a new Analytic Connection.&lt;BR /&gt;b. Restart the Qlik Sense Engine service.&lt;BR /&gt;&lt;BR /&gt;Please refer to the screenshot below for creating a new connection.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; If the R-Plugin (&lt;FONT face="courier new,courier"&gt;SSEtoRserve.exe&lt;/FONT&gt;) was installed on the R-Server (where Rserve runs) or another machine, point to that machine name instead of '&lt;FONT face="courier new,courier"&gt;localhost&lt;/FONT&gt;'. Also, in multi-node environments with multiple Qlik Sense Engines, even if the plugin was installed on the Central node, make sure to add the Central node's hostname instead of 'localhost' as the other Rim node Engine services need the correct DNS/Netbios name to reach the plugin.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rintegration2.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/35612i669A280E99705CA1/image-size/large?v=v2&amp;amp;px=999" role="button" title="rintegration2.png" alt="rintegration2.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT size="5"&gt;6. &lt;/FONT&gt;&lt;/STRONG&gt;Now Open a Qlik Sense App and add a KPI object in the sheet. This can be one of the Apps included with the&amp;nbsp; plugin itself under &lt;FONT face="courier new,courier"&gt;&amp;lt;storage path&amp;gt;\sse-r-plugin-master\sense_apps&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt; that the example apps also need data connections to be created to the data files included with these apps files in the above location.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT size="5"&gt;7.&lt;/FONT&gt;&lt;/STRONG&gt;&amp;nbsp;Otherwise, a new app can be created and any data may be loaded for the SSE example below.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT size="5"&gt;8. &lt;/FONT&gt;&lt;/STRONG&gt;For the measure, add the following expression which contains an R-script:&lt;/P&gt;
&lt;PRE&gt;R.ScriptEvalStr(&lt;STRONG&gt;'paste(q$firstWord, q$secondWord)&lt;/STRONG&gt;;&lt;STRONG&gt;'&lt;/STRONG&gt;, 'Hello' as firstWord, 'World' as secondWord)&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT size="5"&gt;9. &lt;/FONT&gt;&lt;/STRONG&gt;If everything is configured properly, the R-script shown in bold above should be executed fine and it should display a &lt;FONT face="courier new,courier"&gt;"Hello World"&lt;/FONT&gt; message.&lt;/P&gt;
&lt;H4&gt;&amp;nbsp;&lt;/H4&gt;
&lt;H4&gt;Understanding the R-script &amp;amp; Function:&lt;/H4&gt;
&lt;PRE&gt;R.ScriptEvalStr('paste(q$firstWord, q$secondWord);', Only([First Word]) as firstWord, Only([Second Word]) as secondWord)&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;Eight script functions are automatically added to the functionality of&amp;nbsp;the plugin. What is needed to be covered on the plugin side to fulfill the functionality is to implement the &lt;SPAN&gt;EvaluateScript &lt;/SPAN&gt;rpc function.&lt;BR /&gt;&lt;BR /&gt;The syntax of these functions is:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;lt;EngineSSEName&amp;gt;.&amp;lt;FunctionName&amp;gt;(Script [,Parameter...])&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;Where the &lt;FONT face="courier new,courier"&gt;Script&lt;/FONT&gt; is an R-Script to be evaluated &amp;amp; &lt;FONT face="courier new,courier"&gt;Parameter&lt;/FONT&gt; is the data sent from Qlik's end.&lt;BR /&gt;&lt;BR /&gt;Here, we use the &lt;SPAN&gt;ScriptEvalStr &lt;/SPAN&gt;function which accepts argument of type String &amp;amp; returns a String. The&lt;FONT face="courier new,courier"&gt; 'paste'&lt;/FONT&gt; function in R concatenates vectors after converting to character. We pass two data fields of type string from Qlik (First Word &amp;amp; Second Word).&amp;nbsp;The R-script then references these data fields through the &lt;SPAN&gt;q dataframe&amp;nbsp;&lt;/SPAN&gt;(structure already taken care in R)&amp;nbsp;(&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;q$firstWord &lt;/SPAN&gt;&lt;/FONT&gt;and&lt;FONT face="courier new,courier"&gt; &lt;SPAN&gt;q$secondWord&lt;/SPAN&gt;&lt;/FONT&gt;). The script/function finally returns a String back&amp;nbsp;to Qlik Sense.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;Related Content:&lt;/H3&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://help.qlik.com/en-US/sense-admin/Subsystems/DeployAdministerQSE/Content/Sense_DeployAdminister/QSEoW/Administer_QSEoW/Managing_QSEoW/analytic-connections-overview.htm" target="_blank" rel="noopener"&gt;Analytic Connections - Qlik Sense for Administrators&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptRegularStatements/Load.htm" target="_blank" rel="noopener"&gt;Script Regular Statements - Load - Qlik Sense on Windows&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://community.qlik.com/t5/Support-Knowledge-Base/Creating-an-Advanced-Analytics-Server-in-15-minutes-using-AWS/ta-p/1512977" target="_blank" rel="noopener"&gt;Creating an Advanced Analytics Server in 15 minutes using AWS&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://community.qlik.com/t5/Support-Knowledge-Base/Qlik-Server-Side-Extension-SSE-with-Analytic-Connections/ta-p/1715066" target="_blank" rel="noopener"&gt;Qlik Server-Side Extension (SSE) with Analytic Connections&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://community.qlik.com/t5/Support-Knowledge-Base/Getting-Started-with-Advanced-Analytics-in-Qlik-Sense-using/ta-p/1711379" target="_blank" rel="noopener"&gt;Getting Started with Advanced Analytics in Qlik Sense using Python&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://community.qlik.com/t5/Support-Knowledge-Base/How-to-call-an-external-custom-function-in-Qlik-Sense/ta-p/1713478" target="_blank" rel="noopener"&gt;How to call an external / custom function in Qlik Sense?&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://community.qlik.com/t5/Support-Knowledge-Base/Qlik-Sense-Analytic-Connection-SSE-Error-when-reloading-App/ta-p/1713855" target="_blank" rel="noopener"&gt;Qlik Sense Analytic Connection (SSE) Error when reloading App&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Tue, 23 Feb 2021 09:26:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/R-Integration-with-Qlik-Sense/ta-p/1717165</guid>
      <dc:creator>Sonja_Bauernfeind</dc:creator>
      <dc:date>2021-02-23T09:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: R Integration with Qlik Sense</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/R-Integration-with-Qlik-Sense/tac-p/1777306#M1546</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28597"&gt;@Sonja_Bauernfeind&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hoping you can help. We previously had R installed on our server when we were on a single-node. We are now on multi-node and have installed R on a separate server from our Qlik Sense servers. What settings do I need to change to for the analytics connection?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 04:50:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/R-Integration-with-Qlik-Sense/tac-p/1777306#M1546</guid>
      <dc:creator>s-puddle</dc:creator>
      <dc:date>2021-01-26T04:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: R Integration with Qlik Sense</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/R-Integration-with-Qlik-Sense/tac-p/1779847#M1633</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/44097"&gt;@s-puddle&lt;/a&gt;&amp;nbsp;, The Analytic Connection for R should point to the SSEtoRServe plug-in, via port 50051. This can be installed anywhere including on the RServe server. For example: If the plug-in was installed on the Qlik Sense server, and the RServer on a remote server, the following parameter needs to be changed on the file below.&lt;/P&gt;
&lt;P&gt;File:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;C:\&amp;lt;install path&amp;gt;\sse-r-plugin-master\csharp\SSEtoRserve\bin\Debug\SSEtoRserve.exe.config&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Parameter:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;...&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;lt;setting name="rserveHost" serializeAs="String"&amp;gt;&lt;BR /&gt;&amp;lt;value&amp;gt;&lt;/FONT&gt;add the hostname of Rserve server here&lt;FONT face="courier new,courier"&gt;&amp;lt;/value&amp;gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;...&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;I will update the article soon with information around this.&lt;/P&gt;
&lt;P&gt;Thank you for your question!&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2021 15:45:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/R-Integration-with-Qlik-Sense/tac-p/1779847#M1633</guid>
      <dc:creator>Andre_Sostizzo</dc:creator>
      <dc:date>2021-02-03T15:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: R Integration with Qlik Sense</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/R-Integration-with-Qlik-Sense/tac-p/1780120#M1640</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28597"&gt;@Sonja_Bauernfeind&lt;/a&gt;, I've set up&amp;nbsp; a connection between QlikSense and R, using your guidelines. Everything is working perfectly, however we have noticed that both RServe and SSEtoRserve use up large amounts of RAM. When starting up both services, they use less than 20 MB of RAM combined. After running my R script on a large dataset, Rserve goes up to about 350 MB, and SSEtoRserve to 800mb. This does not lower after the script is done running. Do you know of any way to flush this memory?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 11:01:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/R-Integration-with-Qlik-Sense/tac-p/1780120#M1640</guid>
      <dc:creator>KoenD92</dc:creator>
      <dc:date>2021-02-04T11:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: R Integration with Qlik Sense</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/R-Integration-with-Qlik-Sense/tac-p/1780122#M1641</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/134543"&gt;@KoenD92&lt;/a&gt;&amp;nbsp;Let me see what I can find for you!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'll take this to our subject matter experts, though this may not be a Sense specific topic. In the meantime, you can also ask this question in our forums to see if someone in the community can assist you directly.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 11:05:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/R-Integration-with-Qlik-Sense/tac-p/1780122#M1641</guid>
      <dc:creator>Sonja_Bauernfeind</dc:creator>
      <dc:date>2021-02-04T11:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: R Integration with Qlik Sense</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/R-Integration-with-Qlik-Sense/tac-p/1780152#M1642</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;as a suggestion can you check if you can&lt;/P&gt;
&lt;DIV&gt;
&lt;OL&gt;
&lt;LI&gt;add the DISCONNECT statememnt in Qlik script at the end of the script:&lt;BR /&gt;&lt;A tabindex="-1" title="https://help.qlik.com/en-us/sense/november2020/subsystems/hub/content/sense_hub/scripting/scriptregularstatements/disconnect.htm" href="https://help.qlik.com/en-US/sense/November2020/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptRegularStatements/Disconnect.htm" target="_blank" rel="noreferrer noopener"&gt;https://help.qlik.com/en-US/sense/November2020/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptRegularStatements/Disconnect.htm&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;on the R side I would look for the same&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;On the other hand it looks like you already reached out in the right spot for your question:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/qlik-oss/sse-r-plugin/issues/57" target="_blank"&gt;https://github.com/qlik-oss/sse-r-plugin/issues/57&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;since the plugin you use is open source, not supported by Qlik directly.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 04 Feb 2021 12:13:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/R-Integration-with-Qlik-Sense/tac-p/1780152#M1642</guid>
      <dc:creator>Sebastian_Linser</dc:creator>
      <dc:date>2021-02-04T12:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: R Integration with Qlik Sense</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/R-Integration-with-Qlik-Sense/tac-p/2496336#M15066</link>
      <description>&lt;P&gt;Hello Experts,&lt;/P&gt;
&lt;P&gt;What could I be doing wrong?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="julian_rodriguez_0-1733428332746.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/175268iB28966F0CAC0317E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="julian_rodriguez_0-1733428332746.png" alt="julian_rodriguez_0-1733428332746.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2024 19:52:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/R-Integration-with-Qlik-Sense/tac-p/2496336#M15066</guid>
      <dc:creator>julian_rodriguez</dc:creator>
      <dc:date>2024-12-05T19:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: R Integration with Qlik Sense</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/R-Integration-with-Qlik-Sense/tac-p/2532087#M16410</link>
      <description>&lt;P&gt;Dear support and community,&lt;/P&gt;&lt;P&gt;We're integrating Qlik Sense Enterprise on Windows with R.&lt;BR /&gt;This is a single node site, Qlik Sense and R are installed in the same server.&lt;/P&gt;&lt;P&gt;1. The integration was working fine with Qlik Sense Nov 2024 version.&lt;BR /&gt;2. However, it failed after Qlik Sense has been upgraded to May 2025 version.&lt;BR /&gt;3. RServe and the SSE plugin(SSEtoRServe) were both running and listening to the correct ports.&lt;BR /&gt;4. The SSE_Engine log returns: Failed for localhost:50051 error code : 14&lt;/P&gt;&lt;P&gt;SSE plugin downloaded from:&lt;BR /&gt;&lt;A href="https://github.com/qlik-oss/sse-r-plugin" target="_blank"&gt;https://github.com/qlik-oss/sse-r-plugin&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Everything is the same except the Qlik Sense version, but the issue arise.&lt;/P&gt;&lt;P&gt;We'd be appreciate it if you could advise on this.&lt;/P&gt;&lt;P&gt;&lt;LI-PRODUCT title="Qlik Sense Enterprise on Windows" id="qlikSenseEnterpriseWindows"&gt;&lt;/LI-PRODUCT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2025 04:03:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/R-Integration-with-Qlik-Sense/tac-p/2532087#M16410</guid>
      <dc:creator>JinNgiu</dc:creator>
      <dc:date>2025-09-30T04:03:41Z</dc:date>
    </item>
  </channel>
</rss>

