<?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 &amp;quot;R&amp;quot; Error in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/quot-R-quot-Error/m-p/1590098#M43289</link>
    <description>&lt;P&gt;I am trying to evaluate "R" using Qlik Sense. I have already configured "R" and started the Rserve, its working fine. I am using the Demo App and getting an error&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Rserve error: Error received from server: R parser:syntax error:&lt;/P&gt;&lt;P&gt;Can anyone help what am I missing&lt;/P&gt;&lt;P&gt;Below is the script I have&amp;nbsp;&lt;/P&gt;&lt;P&gt;SET inputFile='$(QvWorkPath)\data\Comorbidity Inp ICD9 BBU.csv'; // Only needed for debugging/logging purposes.&lt;BR /&gt;SET outputFile='$(QvWorkPath)\data\Comorbidity Index BBU.csv'; // Only needed for debugging/logging purposes.&lt;BR /&gt;SET RSource = '$(Must_Include=$(QvWorkPath)\R\Comorbidity v2.R)';&lt;BR /&gt;LET RSource = Replace(RSource, '\', '\\'); // R needs double slashes.&lt;/P&gt;&lt;P&gt;// Extract all known ICD-9-CM diagnosis and procedure codes for each patient from the hospital data.&lt;BR /&gt;[icd9cm TEMP]:&lt;BR /&gt;LOAD PatientID as id,&lt;BR /&gt;'D' &amp;amp; Replace(AdmitICD9DiagnosisCD,'.','') as icd9cm&lt;BR /&gt;Resident [Hospital]&lt;BR /&gt;Where AdmitICD9DiagnosisCD &amp;lt;&amp;gt; 'UNKNOWN' and NOT IsNull(AdmitICD9DiagnosisCD);&lt;BR /&gt;LOAD PatientID as id,&lt;BR /&gt;'D' &amp;amp; Replace(PrimaryICD9DiagnosisCD,'.','') as icd9cm&lt;BR /&gt;Resident [Hospital]&lt;BR /&gt;Where PrimaryICD9DiagnosisCD &amp;lt;&amp;gt; 'UNKNOWN' and NOT IsNull(PrimaryICD9DiagnosisCD);&lt;BR /&gt;LOAD PatientID as id,&lt;BR /&gt;'P' &amp;amp; Replace(PrimaryICD9ProcedureCD,'.','') as icd9cm&lt;BR /&gt;Resident [Hospital]&lt;BR /&gt;Where PrimaryICD9ProcedureCD &amp;lt;&amp;gt; 'UNKNOWN' and NOT IsNull(PrimaryICD9ProcedureCD);&lt;/P&gt;&lt;P&gt;icd9cm:&lt;BR /&gt;NoConcatenate LOAD *&lt;BR /&gt;Resident [icd9cm TEMP]&lt;BR /&gt;Order By id;&lt;/P&gt;&lt;P&gt;DROP Table [icd9cm TEMP];&lt;/P&gt;&lt;P&gt;//STORE icd9cm INTO [$(inputFile)] (txt); // Uncomment to write out for debugging/logging purposes.&lt;/P&gt;&lt;P&gt;// Capture the number of ICD-9-CM diagnosis and procedure codes extracted from the hospital patient data.&lt;BR /&gt;LET vPatientICD9CodeCount = NoOfRows('icd9cm');&lt;/P&gt;&lt;P&gt;[Comorbidity Scores]:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;LOAD&lt;BR /&gt;id as PatientID,&lt;BR /&gt;If(index &amp;lt;= 3, index, 5) AS [Comorbidity Score] // index is the field returned by the medicalrisk package function generate_charlson_index_df&lt;BR /&gt;Extension R.ScriptEval('$(RSource)', icd9cm{id, icd9cm});&lt;/P&gt;&lt;P&gt;DROP Table [icd9cm];&lt;/P&gt;</description>
    <pubDate>Mon, 10 Jun 2019 15:12:38 GMT</pubDate>
    <dc:creator>Rehan</dc:creator>
    <dc:date>2019-06-10T15:12:38Z</dc:date>
    <item>
      <title>"R" Error</title>
      <link>https://community.qlik.com/t5/App-Development/quot-R-quot-Error/m-p/1590098#M43289</link>
      <description>&lt;P&gt;I am trying to evaluate "R" using Qlik Sense. I have already configured "R" and started the Rserve, its working fine. I am using the Demo App and getting an error&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Rserve error: Error received from server: R parser:syntax error:&lt;/P&gt;&lt;P&gt;Can anyone help what am I missing&lt;/P&gt;&lt;P&gt;Below is the script I have&amp;nbsp;&lt;/P&gt;&lt;P&gt;SET inputFile='$(QvWorkPath)\data\Comorbidity Inp ICD9 BBU.csv'; // Only needed for debugging/logging purposes.&lt;BR /&gt;SET outputFile='$(QvWorkPath)\data\Comorbidity Index BBU.csv'; // Only needed for debugging/logging purposes.&lt;BR /&gt;SET RSource = '$(Must_Include=$(QvWorkPath)\R\Comorbidity v2.R)';&lt;BR /&gt;LET RSource = Replace(RSource, '\', '\\'); // R needs double slashes.&lt;/P&gt;&lt;P&gt;// Extract all known ICD-9-CM diagnosis and procedure codes for each patient from the hospital data.&lt;BR /&gt;[icd9cm TEMP]:&lt;BR /&gt;LOAD PatientID as id,&lt;BR /&gt;'D' &amp;amp; Replace(AdmitICD9DiagnosisCD,'.','') as icd9cm&lt;BR /&gt;Resident [Hospital]&lt;BR /&gt;Where AdmitICD9DiagnosisCD &amp;lt;&amp;gt; 'UNKNOWN' and NOT IsNull(AdmitICD9DiagnosisCD);&lt;BR /&gt;LOAD PatientID as id,&lt;BR /&gt;'D' &amp;amp; Replace(PrimaryICD9DiagnosisCD,'.','') as icd9cm&lt;BR /&gt;Resident [Hospital]&lt;BR /&gt;Where PrimaryICD9DiagnosisCD &amp;lt;&amp;gt; 'UNKNOWN' and NOT IsNull(PrimaryICD9DiagnosisCD);&lt;BR /&gt;LOAD PatientID as id,&lt;BR /&gt;'P' &amp;amp; Replace(PrimaryICD9ProcedureCD,'.','') as icd9cm&lt;BR /&gt;Resident [Hospital]&lt;BR /&gt;Where PrimaryICD9ProcedureCD &amp;lt;&amp;gt; 'UNKNOWN' and NOT IsNull(PrimaryICD9ProcedureCD);&lt;/P&gt;&lt;P&gt;icd9cm:&lt;BR /&gt;NoConcatenate LOAD *&lt;BR /&gt;Resident [icd9cm TEMP]&lt;BR /&gt;Order By id;&lt;/P&gt;&lt;P&gt;DROP Table [icd9cm TEMP];&lt;/P&gt;&lt;P&gt;//STORE icd9cm INTO [$(inputFile)] (txt); // Uncomment to write out for debugging/logging purposes.&lt;/P&gt;&lt;P&gt;// Capture the number of ICD-9-CM diagnosis and procedure codes extracted from the hospital patient data.&lt;BR /&gt;LET vPatientICD9CodeCount = NoOfRows('icd9cm');&lt;/P&gt;&lt;P&gt;[Comorbidity Scores]:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;LOAD&lt;BR /&gt;id as PatientID,&lt;BR /&gt;If(index &amp;lt;= 3, index, 5) AS [Comorbidity Score] // index is the field returned by the medicalrisk package function generate_charlson_index_df&lt;BR /&gt;Extension R.ScriptEval('$(RSource)', icd9cm{id, icd9cm});&lt;/P&gt;&lt;P&gt;DROP Table [icd9cm];&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 15:12:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/quot-R-quot-Error/m-p/1590098#M43289</guid>
      <dc:creator>Rehan</dc:creator>
      <dc:date>2019-06-10T15:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: "R" Error</title>
      <link>https://community.qlik.com/t5/App-Development/quot-R-quot-Error/m-p/1698652#M53494</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Were you able to resolve this issue? I am having a similar problem.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="somdakay_0-1588568771951.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/32872i98A9419B490B44A3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="somdakay_0-1588568771951.png" alt="somdakay_0-1588568771951.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, Y&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2020 05:09:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/quot-R-quot-Error/m-p/1698652#M53494</guid>
      <dc:creator>somdakay</dc:creator>
      <dc:date>2020-05-04T05:09:19Z</dc:date>
    </item>
  </channel>
</rss>

