<?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 Re: Running R code through SAS IML error: stats package unable to load - execution error in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Running-R-code-through-SAS-IML-error-stats-package-unable-to/m-p/940391#M6267</link>
    <description>&lt;P&gt;This is most likely an installation issue with R and/or SAS.&amp;nbsp; To confirm that is what is going on in your case, you could contact Technical Support and have them verify that it is not something else.&lt;/P&gt;</description>
    <pubDate>Wed, 21 Aug 2024 20:12:03 GMT</pubDate>
    <dc:creator>SAS_Rob</dc:creator>
    <dc:date>2024-08-21T20:12:03Z</dc:date>
    <item>
      <title>Running R code through SAS IML error: stats package unable to load - execution error</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Running-R-code-through-SAS-IML-error-stats-package-unable-to/m-p/940164#M6261</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had an issue running R code through PROC IML that you all previously helped solve (&lt;A href="https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Re-ExportDataSetToR-errors-when-running-R-code-via-PROC-IML/td-p/932767" target="_self"&gt;see here&lt;/A&gt;), however the fix that worked for me is not working for some of my co-workers who are also needing to run R code through PROC IML. They are also trying to run R 4.4.0 through PC SAS 9.4 (TS1M7) via the PROC IML functionality and they are getting different error messages:&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ArthurBaines_1-1724190831674.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/99481i13CFE135AF4B07A1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ArthurBaines_1-1724190831674.png" alt="ArthurBaines_1-1724190831674.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;BR /&gt;&lt;P&gt;Their errors above are from running the example R/IML code provided by SAS &lt;A href="https://documentation.sas.com/doc/en/imlug/15.2/imlug_r_sect006.htm" target="_self" rel="nofollow noopener noreferrer"&gt;here&lt;/A&gt;, namely:&lt;/P&gt;&lt;PRE class=""&gt;&lt;CODE&gt;proc iml;
call ExportDataSetToR("Sashelp.Class", "df" );
submit / R;
   names(df)
endsubmit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone have ideas about this issue?&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 20 Aug 2024 22:04:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Running-R-code-through-SAS-IML-error-stats-package-unable-to/m-p/940164#M6261</guid>
      <dc:creator>ArthurBaines</dc:creator>
      <dc:date>2024-08-20T22:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: Running R code through SAS IML error: stats package unable to load - execution error</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Running-R-code-through-SAS-IML-error-stats-package-unable-to/m-p/940319#M6262</link>
      <description>&lt;P&gt;Maybe this hot-fix:&amp;nbsp;&lt;A href="https://support.sas.com/kb/70/253.html" target="_blank"&gt;https://support.sas.com/kb/70/253.html&lt;/A&gt;&amp;nbsp;?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 14:52:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Running-R-code-through-SAS-IML-error-stats-package-unable-to/m-p/940319#M6262</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2024-08-21T14:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Running R code through SAS IML error: stats package unable to load - execution error</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Running-R-code-through-SAS-IML-error-stats-package-unable-to/m-p/940344#M6263</link>
      <description>&lt;P&gt;I also thought it might be that, even though the error messages don't quite match (e.g. my coworkers aren't getting the final &lt;FONT face="courier new,courier"&gt;ERROR: The final R statement is incomplete. &lt;/FONT&gt;piece&lt;FONT face="courier new,courier"&gt;)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, we tried it but Deployment Manager said that hot fix was not applicable to their installations. Thanks for the suggestion!&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 16:50:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Running-R-code-through-SAS-IML-error-stats-package-unable-to/m-p/940344#M6263</guid>
      <dc:creator>ArthurBaines</dc:creator>
      <dc:date>2024-08-21T16:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: Running R code through SAS IML error: stats package unable to load - execution error</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Running-R-code-through-SAS-IML-error-stats-package-unable-to/m-p/940391#M6267</link>
      <description>&lt;P&gt;This is most likely an installation issue with R and/or SAS.&amp;nbsp; To confirm that is what is going on in your case, you could contact Technical Support and have them verify that it is not something else.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 20:12:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Running-R-code-through-SAS-IML-error-stats-package-unable-to/m-p/940391#M6267</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2024-08-21T20:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: Running R code through SAS IML error: stats package unable to load - execution error</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Running-R-code-through-SAS-IML-error-stats-package-unable-to/m-p/940500#M6268</link>
      <description>&lt;P&gt;Thanks, Rob. I'll talk with my coworkers and get one of them to contact Technical Support.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 17:24:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Running-R-code-through-SAS-IML-error-stats-package-unable-to/m-p/940500#M6268</guid>
      <dc:creator>ArthurBaines</dc:creator>
      <dc:date>2024-08-22T17:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Running R code through SAS IML error: stats package unable to load - execution error</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Running-R-code-through-SAS-IML-error-stats-package-unable-to/m-p/950972#M6355</link>
      <description>&lt;P&gt;I am getting this same error with SAS 9.4 (TS1M8) on all R versions 4.2.0 or later. I ended up reverting to R 4.1.3 to fix the problem.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 22:37:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Running-R-code-through-SAS-IML-error-stats-package-unable-to/m-p/950972#M6355</guid>
      <dc:creator>kdett</dc:creator>
      <dc:date>2024-11-15T22:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: Running R code through SAS IML error: stats package unable to load - execution error</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Running-R-code-through-SAS-IML-error-stats-package-unable-to/m-p/950997#M6356</link>
      <description>&lt;P&gt;Maybe the R_HOME is not set right? Try something similar to this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options set=R_HOME="X:\R\R-4.3.1\"; /* set R_HOME */

data _null_; /* check the R_HOME value */
x=sysget('R_HOME');
put x=;
run;

/* run test */
proc iml;
call ExportDataSetToR("Sashelp.Class", "df" );
submit / R;
   names(df)
endsubmit;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Bart&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 10:16:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Running-R-code-through-SAS-IML-error-stats-package-unable-to/m-p/950997#M6356</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2024-11-16T10:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: Running R code through SAS IML error: stats package unable to load - execution error</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Running-R-code-through-SAS-IML-error-stats-package-unable-to/m-p/950998#M6357</link>
      <description>&lt;P&gt;I believe this is a known problem and there is a hotfix that fixes the issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/155173"&gt;@SAS_Rob&lt;/a&gt;&amp;nbsp;Can you post a link to the appropriate hotfix so that this thread contains the information needed to resolve this issue?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 11:01:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Running-R-code-through-SAS-IML-error-stats-package-unable-to/m-p/950998#M6357</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2024-11-16T11:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: Running R code through SAS IML error: stats package unable to load - execution error</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Running-R-code-through-SAS-IML-error-stats-package-unable-to/m-p/951085#M6372</link>
      <description>&lt;P&gt;Try installing the hotfix here and see if that resolves the issue.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/kb/70/253.html" target="_blank"&gt;70253 - Using SAS/IML® Interface to R with version 4.3.0 of the R Language generates an execution error&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2024 13:28:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Running-R-code-through-SAS-IML-error-stats-package-unable-to/m-p/951085#M6372</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2024-11-18T13:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Running R code through SAS IML error: stats package unable to load - execution error</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Running-R-code-through-SAS-IML-error-stats-package-unable-to/m-p/951100#M6373</link>
      <description>&lt;P&gt;Looks like it's exactly the one I proposed in August.&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&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="yabwon_0-1731941197455.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/102321i9C4E2509C6C5631C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yabwon_0-1731941197455.png" alt="yabwon_0-1731941197455.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2024 14:47:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Running-R-code-through-SAS-IML-error-stats-package-unable-to/m-p/951100#M6373</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2024-11-18T14:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: Running R code through SAS IML error: stats package unable to load - execution error</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Running-R-code-through-SAS-IML-error-stats-package-unable-to/m-p/951121#M6374</link>
      <description>&lt;P&gt;Here is a link to a paper that I wrote regarding submitting R code to be executed via SAS/IML submit/r block.&lt;/P&gt;
&lt;P&gt;HTH,&lt;/P&gt;
&lt;P&gt;Ross&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.lexjansen.com/sesug/2016/AD-118_Final_PDF.pdf" target="_blank"&gt;https://www.lexjansen.com/sesug/2016/AD-118_Final_PDF.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2024 17:00:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Running-R-code-through-SAS-IML-error-stats-package-unable-to/m-p/951121#M6374</guid>
      <dc:creator>rbettinger</dc:creator>
      <dc:date>2024-11-18T17:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Running R code through SAS IML error: stats package unable to load - execution error</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Running-R-code-through-SAS-IML-error-stats-package-unable-to/m-p/951140#M6375</link>
      <description>&lt;P&gt;Yes, the error is occurring even with R_HOME set correctly. I am getting a slightly different error than the one described for this hot fix, and if the hot fix is for changes introduced in R 4.3.0, what might explain why I am getting the same error all the way back to 4.2.0 on TS1M8?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2024 20:16:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Running-R-code-through-SAS-IML-error-stats-package-unable-to/m-p/951140#M6375</guid>
      <dc:creator>kdett</dc:creator>
      <dc:date>2024-11-18T20:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: Running R code through SAS IML error: stats package unable to load - execution error</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Running-R-code-through-SAS-IML-error-stats-package-unable-to/m-p/951206#M6376</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/471190"&gt;@kdett&lt;/a&gt;&amp;nbsp; - "&lt;SPAN&gt;&amp;nbsp;a slightly different error&lt;/SPAN&gt;" - could you share?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"You shall pass"&amp;nbsp; and "You shall not pass" are also only slightly different &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bart&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2024 11:31:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Running-R-code-through-SAS-IML-error-stats-package-unable-to/m-p/951206#M6376</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2024-11-19T11:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: Running R code through SAS IML error: stats package unable to load - execution error</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Running-R-code-through-SAS-IML-error-stats-package-unable-to/m-p/951223#M6377</link>
      <description>&lt;P&gt;Sorry, it is a little hard to follow the thread.&lt;/P&gt;
&lt;P&gt;What is the exact error message you are receiving at this point?&lt;/P&gt;
&lt;P&gt;Does the version of R run outside of SAS without any issues?&lt;/P&gt;
&lt;P&gt;As I mentioned in the previous thread, this is likely related to an installation issue with R, but it is hard to say for sure&lt;/P&gt;
&lt;P&gt;I should also mention that there is a security vulnerability in all of the versions of R prior to 4.4.X so you might not want to run an earlier version anyway.&amp;nbsp; My suggestion would be to add the hotfix that I mentioned, remove all the old versions with the vulnerability and update to 4.4 and start from there.&amp;nbsp; This might resolve issue, but at the very least, it will eliminate several possible causes.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2024 14:55:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Running-R-code-through-SAS-IML-error-stats-package-unable-to/m-p/951223#M6377</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2024-11-19T14:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Running R code through SAS IML error: stats package unable to load - execution error</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Running-R-code-through-SAS-IML-error-stats-package-unable-to/m-p/951503#M6378</link>
      <description>&lt;P&gt;The error message I'm receiving is the one in the screenshot at the top of this thread that the original poster claimed the hot fix was unable to resolve for his co-workers. I'm using R 4.4.x without issue otherwise, and will attempt the suggested hotfix as soon as I have time to work with IT.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 14:36:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Running-R-code-through-SAS-IML-error-stats-package-unable-to/m-p/951503#M6378</guid>
      <dc:creator>kdett</dc:creator>
      <dc:date>2024-11-21T14:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: Running R code through SAS IML error: stats package unable to load - execution error</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Running-R-code-through-SAS-IML-error-stats-package-unable-to/m-p/952538#M6383</link>
      <description>&lt;P&gt;Just an update, I was able to install the suggested hotfix and it did not solve the error with R 4.4. I am still receiving the same message at the top of this thread. R 4.4 is working fine otherwise.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 15:06:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Running-R-code-through-SAS-IML-error-stats-package-unable-to/m-p/952538#M6383</guid>
      <dc:creator>kdett</dc:creator>
      <dc:date>2024-12-04T15:06:24Z</dc:date>
    </item>
  </channel>
</rss>

