<?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 Can I use CAS with SAS Viya for Learners to run an R script? in SAS Viya</title>
    <link>https://communities.sas.com/t5/SAS-Viya/Can-I-use-CAS-with-SAS-Viya-for-Learners-to-run-an-R-script/m-p/785817#M1269</link>
    <description>&lt;P&gt;I am interested in running an R script on SAS Viya.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm following the instructions under this github page. &lt;A href="https://github.com/sassoftware/R-swat" target="_blank"&gt;https://github.com/sassoftware/R-swat&lt;/A&gt; So far, swat is installed as a package on my desktop RStudio.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm stuck at the next part, connecting to CAS.&lt;/P&gt;
&lt;PRE&gt;conn &amp;lt;- swat::CAS('cloud.example.com', 8777, protocol='http')&lt;/PRE&gt;
&lt;P&gt;I'm not sure what I should substitute in place of cloud.example.com. How I can enable the connection between R on my computer and SAS Viya for learners? I know I'm missing a small step between loading the swat package and connecting to CAS. I'd appreciate it if you can point me in the right direction.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Dec 2021 17:49:07 GMT</pubDate>
    <dc:creator>thewan</dc:creator>
    <dc:date>2021-12-13T17:49:07Z</dc:date>
    <item>
      <title>Can I use CAS with SAS Viya for Learners to run an R script?</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Can-I-use-CAS-with-SAS-Viya-for-Learners-to-run-an-R-script/m-p/785817#M1269</link>
      <description>&lt;P&gt;I am interested in running an R script on SAS Viya.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm following the instructions under this github page. &lt;A href="https://github.com/sassoftware/R-swat" target="_blank"&gt;https://github.com/sassoftware/R-swat&lt;/A&gt; So far, swat is installed as a package on my desktop RStudio.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm stuck at the next part, connecting to CAS.&lt;/P&gt;
&lt;PRE&gt;conn &amp;lt;- swat::CAS('cloud.example.com', 8777, protocol='http')&lt;/PRE&gt;
&lt;P&gt;I'm not sure what I should substitute in place of cloud.example.com. How I can enable the connection between R on my computer and SAS Viya for learners? I know I'm missing a small step between loading the swat package and connecting to CAS. I'd appreciate it if you can point me in the right direction.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 17:49:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Can-I-use-CAS-with-SAS-Viya-for-Learners-to-run-an-R-script/m-p/785817#M1269</guid>
      <dc:creator>thewan</dc:creator>
      <dc:date>2021-12-13T17:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use CAS with SAS Viya for Learners to run an R script?</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Can-I-use-CAS-with-SAS-Viya-for-Learners-to-run-an-R-script/m-p/785856#M1270</link>
      <description>You can connect from R using the JupyterHub link in SAS Viya for Learners. You probably would not be able to establish a connection from a local R session on your desktop because of firewall limitations.</description>
      <pubDate>Mon, 13 Dec 2021 19:16:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Can-I-use-CAS-with-SAS-Viya-for-Learners-to-run-an-R-script/m-p/785856#M1270</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2021-12-13T19:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use CAS with SAS Viya for Learners to run an R script?</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Can-I-use-CAS-with-SAS-Viya-for-Learners-to-run-an-R-script/m-p/785864#M1271</link>
      <description>&lt;P&gt;To specifically answer your question on what the cas server hostname is: you can find it after logging in to SAS Viya for Learners under the "Manage Environment" application's "Server" menu. In JupyterHub though you can pull everything you need from environment variables:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;conn &amp;lt;- swat::CAS(Sys.getenv("CASHOST"), port=Sys.getenv("CASPORT"), password=Sys.getenv('SAS_VIYA_TOKEN'))&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 Dec 2021 19:57:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Can-I-use-CAS-with-SAS-Viya-for-Learners-to-run-an-R-script/m-p/785864#M1271</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2021-12-13T19:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use CAS with SAS Viya for Learners to run an R script?</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Can-I-use-CAS-with-SAS-Viya-for-Learners-to-run-an-R-script/m-p/786020#M1277</link>
      <description>Thank you for the quick response. I have not worked with a JupyterHub link before but I registered for a SAS webinar on connecting to SAS Viya with Python. I am interested in learning how to use this.</description>
      <pubDate>Tue, 14 Dec 2021 16:20:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Can-I-use-CAS-with-SAS-Viya-for-Learners-to-run-an-R-script/m-p/786020#M1277</guid>
      <dc:creator>thewan</dc:creator>
      <dc:date>2021-12-14T16:20:16Z</dc:date>
    </item>
  </channel>
</rss>

