<?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 Issue while integrating with R in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Issue-while-integrating-with-R/m-p/516952#M1144725</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt;Hi,&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt;I installed StatconnDcom and tested it was running fine in my windows system and also my R was installed successfully.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt;But when I tried the below simple piece of code it was not creating sss222.csv as it supposed to. I just modified the QlikView-R_Predictive_Demo macro as below , don't know where i made mistake, can someone help me here....&amp;nbsp; &lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt; ' Create a COM object representing R&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt; Set R = CreateObject("StatConnectorSrv.StatConnector")&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt; R.Init "R"&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Rattle is Copyright (c) 2006-2012 Togaware Pty Ltd.1&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.EvaluateNoReturn "library(rattle)"&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.EvaluateNoReturn "building &amp;lt;- TRUE"&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.EvaluateNoReturn "setwd(dir = “D:/Lab”)"&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.EvaluateNoReturn "read.csv(“SalesDemo.csv”)"&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt;&amp;nbsp; R.EvaluateNoReturn "sasken &amp;lt;- Read.csv(“SalesDemo.csv”)"&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.EvaluateNoReturn "write.csv(sasken, file='"&amp;amp;CurrentPath&amp;amp;"/sas222.csv')"&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.EvaluateNoReturn "basken &amp;lt;- lm(formula = AdvCost ~ Sales, data =sasken)"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'R.EvaluateNoReturn "write.csv(cbind(sdata, crs$pr), &lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'file='"&amp;amp;CurrentPath&amp;amp;"/results/ExportFile_score_idents.csv', row.names=FALSE)"&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.EvaluateNoReturn "write.csv(basken, file='"&amp;amp;CurrentPath&amp;amp;"/sasken.csv', row.names=FALSE)"&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Close R connection&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.close&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set v = ActiveDocument.GetVariable("vRuntime")&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt; v.SetContent Runtime(), True&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Load the scores into the QlikView application&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveDocument.DoReload 2, false,false 'Fail on error, Partial Reload&amp;nbsp; &lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt;End Sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Aug 2013 09:07:06 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-08-22T09:07:06Z</dc:date>
    <item>
      <title>Issue while integrating with R</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-while-integrating-with-R/m-p/516952#M1144725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt;Hi,&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt;I installed StatconnDcom and tested it was running fine in my windows system and also my R was installed successfully.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt;But when I tried the below simple piece of code it was not creating sss222.csv as it supposed to. I just modified the QlikView-R_Predictive_Demo macro as below , don't know where i made mistake, can someone help me here....&amp;nbsp; &lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt; ' Create a COM object representing R&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt; Set R = CreateObject("StatConnectorSrv.StatConnector")&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt; R.Init "R"&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Rattle is Copyright (c) 2006-2012 Togaware Pty Ltd.1&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.EvaluateNoReturn "library(rattle)"&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.EvaluateNoReturn "building &amp;lt;- TRUE"&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.EvaluateNoReturn "setwd(dir = “D:/Lab”)"&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.EvaluateNoReturn "read.csv(“SalesDemo.csv”)"&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt;&amp;nbsp; R.EvaluateNoReturn "sasken &amp;lt;- Read.csv(“SalesDemo.csv”)"&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.EvaluateNoReturn "write.csv(sasken, file='"&amp;amp;CurrentPath&amp;amp;"/sas222.csv')"&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.EvaluateNoReturn "basken &amp;lt;- lm(formula = AdvCost ~ Sales, data =sasken)"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'R.EvaluateNoReturn "write.csv(cbind(sdata, crs$pr), &lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'file='"&amp;amp;CurrentPath&amp;amp;"/results/ExportFile_score_idents.csv', row.names=FALSE)"&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.EvaluateNoReturn "write.csv(basken, file='"&amp;amp;CurrentPath&amp;amp;"/sasken.csv', row.names=FALSE)"&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Close R connection&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.close&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set v = ActiveDocument.GetVariable("vRuntime")&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt; v.SetContent Runtime(), True&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Load the scores into the QlikView application&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveDocument.DoReload 2, false,false 'Fail on error, Partial Reload&amp;nbsp; &lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt;End Sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2013 09:07:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-while-integrating-with-R/m-p/516952#M1144725</guid>
      <dc:creator />
      <dc:date>2013-08-22T09:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Issue while integrating with R</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-while-integrating-with-R/m-p/516953#M1144726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What version of R are you using ?&lt;/P&gt;&lt;P&gt;Because after I upgraded to version 3.0.1 from version 2.xx the COM object doesn't works anymore !&lt;/P&gt;&lt;P&gt;Please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Sep 2013 19:12:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-while-integrating-with-R/m-p/516953#M1144726</guid>
      <dc:creator>agigliotti</dc:creator>
      <dc:date>2013-09-23T19:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Issue while integrating with R</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-while-integrating-with-R/m-p/516954#M1144727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I solved the issue using the latest version of R 3.0.2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Oct 2013 10:33:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-while-integrating-with-R/m-p/516954#M1144727</guid>
      <dc:creator>agigliotti</dc:creator>
      <dc:date>2013-10-01T10:33:39Z</dc:date>
    </item>
  </channel>
</rss>

