<?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 Keep R opened in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Keep-R-opened/m-p/168695#M1649</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to pass SAS datasets to R and leave the R window open once the data is transfered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Indeed the typical use is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc iml;&lt;/P&gt;&lt;P&gt;call ExportDataSetToR("myData","data");&lt;/P&gt;&lt;P&gt;submit /R;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #### code&lt;/P&gt;&lt;P&gt;endsubmit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem with this is that the R windows is neither opened nor closed. We just see the outcome of the R code within the SAS Results page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would be interested in interacting further with the data transfered to R within R directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to keep the R window opened ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Dec 2013 13:21:45 GMT</pubDate>
    <dc:creator>GabACM</dc:creator>
    <dc:date>2013-12-10T13:21:45Z</dc:date>
    <item>
      <title>Keep R opened</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Keep-R-opened/m-p/168695#M1649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to pass SAS datasets to R and leave the R window open once the data is transfered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Indeed the typical use is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc iml;&lt;/P&gt;&lt;P&gt;call ExportDataSetToR("myData","data");&lt;/P&gt;&lt;P&gt;submit /R;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #### code&lt;/P&gt;&lt;P&gt;endsubmit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem with this is that the R windows is neither opened nor closed. We just see the outcome of the R code within the SAS Results page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would be interested in interacting further with the data transfered to R within R directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to keep the R window opened ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Dec 2013 13:21:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Keep-R-opened/m-p/168695#M1649</guid>
      <dc:creator>GabACM</dc:creator>
      <dc:date>2013-12-10T13:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Keep R opened</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Keep-R-opened/m-p/168696#M1650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The SUBMIT / R statement enables you to submit R statements that you have already developed and debugged in an R session.&amp;nbsp; It does not create an R session with a program console for you to interactively work on a program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when you use the SAS/IML interface, R does not go away after the ENDSUBMIT statement, so a certain degree of interaction is possible. For example, see the first item/example on the list in this article:&lt;A href="http://blogs.sas.com/content/iml/2013/11/25/twelve-advantages-to-calling-r-from-the-sasiml-language/" title="http://blogs.sas.com/content/iml/2013/11/25/twelve-advantages-to-calling-r-from-the-sasiml-language/"&gt; Twelve advantages to calling R from the SAS/IML language - The DO Loop&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other interactions are also possible. For example, run the following program and follow its directions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc iml;&lt;BR /&gt;run ExportDataSetToR("Sashelp.cars", "cars");&lt;/P&gt;&lt;P&gt;submit / R;&lt;BR /&gt;&amp;nbsp; plot( cars$MPG_City, cars$MPG_Highway )&lt;BR /&gt;&amp;nbsp; print ("Click on markers where MPG_City&amp;gt;40")&lt;BR /&gt;&amp;nbsp; print ("Then right-click and select 'Stop'")&lt;BR /&gt;&amp;nbsp; sel &amp;lt;- identify(cars$MPG_City, cars$MPG_Highway)&lt;BR /&gt;endsubmit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* retrieve obs numbers of selected obs and print in PROC IML */&lt;BR /&gt;run ImportMatrixFromR(selList, "sel");&lt;/P&gt;&lt;P&gt;use Sashelp.Cars; &lt;BR /&gt;read all var {Make Model};&lt;BR /&gt;close Sashelp.Cars;&lt;BR /&gt;print (Make[selList]||Model[selList])[L="The Selected Cars"]; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://blogs.sas.com/content/iml/2013/11/25/twelve-advantages-to-calling-r-from-the-sasiml-language/" title="http://blogs.sas.com/content/iml/2013/11/25/twelve-advantages-to-calling-r-from-the-sasiml-language/"&gt;http://blogs.sas.com/content/iml/2013/11/25/twelve-advantages-to-calling-r-from-the-sasiml-language/&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Dec 2013 14:01:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Keep-R-opened/m-p/168696#M1650</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2013-12-10T14:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: Keep R opened</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Keep-R-opened/m-p/168697#M1651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, thank you for your answer Rick Wicklin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2013 07:59:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Keep-R-opened/m-p/168697#M1651</guid>
      <dc:creator>GabACM</dc:creator>
      <dc:date>2013-12-12T07:59:47Z</dc:date>
    </item>
  </channel>
</rss>

