<?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 Retrieve Data from R in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Retrieve-Data-from-R/m-p/1983779#M17385</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am trying to call my R script in Qlik Dataload editor. &lt;SPAN&gt;I have installed the R Plugin and I am able to run the R examples provided.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;But since I am very new to R. I found this script online but cannot get it work.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;**************************************************&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Set vRSource = 'C:/PROJEKTE/R/Forecast/';&lt;/P&gt;
&lt;P&gt;FACT:&lt;BR /&gt;LOAD&lt;BR /&gt;*,&lt;BR /&gt;'$(vRsource)' as RSource&lt;BR /&gt;FROM [lib://FORECAST/Forecast/GP Orders - 5.csv]&lt;BR /&gt;(txt, utf8, embedded labels, delimiter is ',', msq);&lt;/P&gt;
&lt;P&gt;Forecasts:&lt;BR /&gt;NoConcatenate Load *&lt;BR /&gt;Extension R.ScriptEval ('&lt;BR /&gt;Source(paste0(unique(q$RSource)[1],"Test_R.R"))&lt;BR /&gt;forecast_attendances(q)&lt;BR /&gt;' , FACT);&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;**************************************************&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The Error says: "&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV class="message error"&gt;
&lt;DIV class="selectable"&gt;Connector reply error: grpc::StatusCode::INVALID_ARGUMENT: 'Status(StatusCode=InvalidArgument, Detail="Rserve error: Error in Source(paste0(unique(q$RSource)[1], "220914_Beispielcode_Integration Qlik.R")) :&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="message error"&gt;
&lt;DIV class="selectable"&gt;could not find function "Source"&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I assume there will also be problem with the part "forecast_attendances". Could someone please explain these 2 R script lines?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Many thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lan&lt;/P&gt;</description>
    <pubDate>Wed, 21 Sep 2022 15:34:40 GMT</pubDate>
    <dc:creator>LanBiteam</dc:creator>
    <dc:date>2022-09-21T15:34:40Z</dc:date>
    <item>
      <title>Retrieve Data from R</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Retrieve-Data-from-R/m-p/1983779#M17385</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am trying to call my R script in Qlik Dataload editor. &lt;SPAN&gt;I have installed the R Plugin and I am able to run the R examples provided.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;But since I am very new to R. I found this script online but cannot get it work.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;**************************************************&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Set vRSource = 'C:/PROJEKTE/R/Forecast/';&lt;/P&gt;
&lt;P&gt;FACT:&lt;BR /&gt;LOAD&lt;BR /&gt;*,&lt;BR /&gt;'$(vRsource)' as RSource&lt;BR /&gt;FROM [lib://FORECAST/Forecast/GP Orders - 5.csv]&lt;BR /&gt;(txt, utf8, embedded labels, delimiter is ',', msq);&lt;/P&gt;
&lt;P&gt;Forecasts:&lt;BR /&gt;NoConcatenate Load *&lt;BR /&gt;Extension R.ScriptEval ('&lt;BR /&gt;Source(paste0(unique(q$RSource)[1],"Test_R.R"))&lt;BR /&gt;forecast_attendances(q)&lt;BR /&gt;' , FACT);&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;**************************************************&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The Error says: "&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV class="message error"&gt;
&lt;DIV class="selectable"&gt;Connector reply error: grpc::StatusCode::INVALID_ARGUMENT: 'Status(StatusCode=InvalidArgument, Detail="Rserve error: Error in Source(paste0(unique(q$RSource)[1], "220914_Beispielcode_Integration Qlik.R")) :&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="message error"&gt;
&lt;DIV class="selectable"&gt;could not find function "Source"&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I assume there will also be problem with the part "forecast_attendances". Could someone please explain these 2 R script lines?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Many thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lan&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 15:34:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Retrieve-Data-from-R/m-p/1983779#M17385</guid>
      <dc:creator>LanBiteam</dc:creator>
      <dc:date>2022-09-21T15:34:40Z</dc:date>
    </item>
  </channel>
</rss>

