<?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: SAS macros executing R package in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-macros-executing-R-package/m-p/596093#M171586</link>
    <description>&lt;P&gt;That's helpful, thank you.&lt;/P&gt;</description>
    <pubDate>Sun, 13 Oct 2019 19:30:45 GMT</pubDate>
    <dc:creator>eabc0351</dc:creator>
    <dc:date>2019-10-13T19:30:45Z</dc:date>
    <item>
      <title>SAS macros executing R package</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-macros-executing-R-package/m-p/596077#M171579</link>
      <description>&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #333333; font-family: 'adelle',Verdana,Arial,Helvetica,sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Hello. I am using a SAS macro to call functions from a&lt;/SPAN&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #333333; font-family: 'adelle',Verdana,Arial,Helvetica,sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt; package in the R environment. This macro is working fine on my university computer, but is not working on my personal computer, which has the same versions of SAS and R installed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #333333; font-family: 'adelle',Verdana,Arial,Helvetica,sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;The problem arises when the SAS macro gets to the point where it calls R to install the R package needed to run the script. R opens but the packages are unable to be installed and the macro aborts.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #333333; font-family: 'adelle',Verdana,Arial,Helvetica,sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;I believe that the issue is from the SAS side, not the R side. Again, this program is working perfectly on a different computer at school, so it isn't the syntax.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #333333; font-family: 'adelle',Verdana,Arial,Helvetica,sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Can anyone help me understand why this is not working on my home computer and potential solutions? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #333333; font-family: 'adelle',Verdana,Arial,Helvetica,sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Thank you for your time.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Oct 2019 15:33:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-macros-executing-R-package/m-p/596077#M171579</guid>
      <dc:creator>eabc0351</dc:creator>
      <dc:date>2019-10-13T15:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: SAS macros executing R package</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-macros-executing-R-package/m-p/596090#M171585</link>
      <description>Hi:&lt;BR /&gt;  I would recommend comparing what is installed on the computer where it works (PROC IML? Enterprise Miner?) versus what SAS components are installed on the computer where it doesn't work. The chances are good that the computer where it works has something installed that the personal computer does not have.&lt;BR /&gt;Cynthia</description>
      <pubDate>Sun, 13 Oct 2019 18:53:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-macros-executing-R-package/m-p/596090#M171585</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-10-13T18:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: SAS macros executing R package</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-macros-executing-R-package/m-p/596093#M171586</link>
      <description>&lt;P&gt;That's helpful, thank you.&lt;/P&gt;</description>
      <pubDate>Sun, 13 Oct 2019 19:30:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-macros-executing-R-package/m-p/596093#M171586</guid>
      <dc:creator>eabc0351</dc:creator>
      <dc:date>2019-10-13T19:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: SAS macros executing R package</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-macros-executing-R-package/m-p/596222#M171636</link>
      <description>&lt;P&gt;Check your option RLang:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc options option=RLang;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And Better post it at IML forum .&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp; is there .&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 11:52:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-macros-executing-R-package/m-p/596222#M171636</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-10-14T11:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: SAS macros executing R package</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-macros-executing-R-package/m-p/596227#M171637</link>
      <description>&lt;P&gt;Post the program you are using and provide a link to the macro source code. (I assume you downloaded it from somewhere, but if you or your professor wrote the macro, please post the source code.)&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 12:00:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-macros-executing-R-package/m-p/596227#M171637</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-10-14T12:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: SAS macros executing R package</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-macros-executing-R-package/m-p/596265#M171656</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;Please find the macro source code, my program, and a sample dataset attached.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 20:24:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-macros-executing-R-package/m-p/596265#M171656</guid>
      <dc:creator>eabc0351</dc:creator>
      <dc:date>2019-10-15T20:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: SAS macros executing R package</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-macros-executing-R-package/m-p/596267#M171658</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp; I checked Rlang and here is what appeared in the log file:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;SAS (r) Proprietary Software Release 9.4 TS1M2&lt;/P&gt;&lt;P&gt;NORLANG Disables SAS from executing R language statements.&lt;BR /&gt;NOTE: PROCEDURE OPTIONS used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 13:28:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-macros-executing-R-package/m-p/596267#M171658</guid>
      <dc:creator>eabc0351</dc:creator>
      <dc:date>2019-10-14T13:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: SAS macros executing R package</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-macros-executing-R-package/m-p/596610#M171806</link>
      <description>&lt;P&gt;I don't know why the macro is unable to install the R package. The macro performs lots of file manipulation (eg, creating folders on your Windows machine). I suggest you install the package manually. Since packages only need to be installed once, the macro should skip the installation if it sees that twang is already installed.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 17:48:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-macros-executing-R-package/m-p/596610#M171806</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-10-15T17:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: SAS macros executing R package</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-macros-executing-R-package/m-p/596654#M171823</link>
      <description>&lt;P&gt;Okay, I'll try that. Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 20:24:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-macros-executing-R-package/m-p/596654#M171823</guid>
      <dc:creator>eabc0351</dc:creator>
      <dc:date>2019-10-15T20:24:02Z</dc:date>
    </item>
  </channel>
</rss>

