<?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>topic Getting weird output when using SSE-R-Plugin from within a data table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Getting-weird-output-when-using-SSE-R-Plugin-from-within-a-data/m-p/1870166#M71848</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have a simple data table in Qlik with 1 column, say Var1, having entries 1, 2, 3, ... , 10.&lt;/P&gt;
&lt;P&gt;Now I want to create a 2nd column, say VarR, that is identical to Var1, but is created with the SSE-R-Plugin.&lt;/P&gt;
&lt;P&gt;I tried several commands, each with questionable outcomes:&lt;/P&gt;
&lt;P&gt;A) = R.ScriptEvalEx('N', 'q$v1', Var1 as v1) returns an error in Qlik&lt;/P&gt;
&lt;P&gt;B) = R.ScriptEvalEx('N', '1:10', Var1 as v1) gives the desired result, but is hard-coded&lt;/P&gt;
&lt;P&gt;C) = R.ScriptEvalEx('N', 'saveRDS(q$v1, "test_data.rds"); 1:10', Var1 as v1) returns a column with 1s. In addition, the saved data set on the server is NULL&lt;/P&gt;
&lt;P&gt;Does anyone know how to deal with this issue and how to get the right result? See also &lt;A href="https://github.com/qlik-oss/sse-r-plugin/issues/61" target="_blank"&gt;https://github.com/qlik-oss/sse-r-plugin/issues/61&lt;/A&gt; for some images.&lt;/P&gt;
&lt;P&gt;By the way: I know that I can simply copy the column from within Qlik, but I want to do it using the plugin as my main task is far more complex than the example above.&lt;/P&gt;
&lt;P&gt;Regards, Lukas&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 16:53:07 GMT</pubDate>
    <dc:creator>lukasmartig</dc:creator>
    <dc:date>2024-11-16T16:53:07Z</dc:date>
    <item>
      <title>Getting weird output when using SSE-R-Plugin from within a data table</title>
      <link>https://community.qlik.com/t5/App-Development/Getting-weird-output-when-using-SSE-R-Plugin-from-within-a-data/m-p/1870166#M71848</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have a simple data table in Qlik with 1 column, say Var1, having entries 1, 2, 3, ... , 10.&lt;/P&gt;
&lt;P&gt;Now I want to create a 2nd column, say VarR, that is identical to Var1, but is created with the SSE-R-Plugin.&lt;/P&gt;
&lt;P&gt;I tried several commands, each with questionable outcomes:&lt;/P&gt;
&lt;P&gt;A) = R.ScriptEvalEx('N', 'q$v1', Var1 as v1) returns an error in Qlik&lt;/P&gt;
&lt;P&gt;B) = R.ScriptEvalEx('N', '1:10', Var1 as v1) gives the desired result, but is hard-coded&lt;/P&gt;
&lt;P&gt;C) = R.ScriptEvalEx('N', 'saveRDS(q$v1, "test_data.rds"); 1:10', Var1 as v1) returns a column with 1s. In addition, the saved data set on the server is NULL&lt;/P&gt;
&lt;P&gt;Does anyone know how to deal with this issue and how to get the right result? See also &lt;A href="https://github.com/qlik-oss/sse-r-plugin/issues/61" target="_blank"&gt;https://github.com/qlik-oss/sse-r-plugin/issues/61&lt;/A&gt; for some images.&lt;/P&gt;
&lt;P&gt;By the way: I know that I can simply copy the column from within Qlik, but I want to do it using the plugin as my main task is far more complex than the example above.&lt;/P&gt;
&lt;P&gt;Regards, Lukas&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 16:53:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Getting-weird-output-when-using-SSE-R-Plugin-from-within-a-data/m-p/1870166#M71848</guid>
      <dc:creator>lukasmartig</dc:creator>
      <dc:date>2024-11-16T16:53:07Z</dc:date>
    </item>
  </channel>
</rss>

