<?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 Downloading r scripts on-the-fly in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Downloading-r-scripts-on-the-fly/m-p/793658#M2555</link>
    <description>&lt;P&gt;I'm attempting to create a custom visual that downloads r scripts on-the-fly, but am running into a challenge with getting it to work in the Power BI Service.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've created a custom visual based off the RHTML template that is supposed to plot a graph, but I wanted to solve for a solution where our analysts can maintain &amp;amp; tweak their models without having to recompile the Power BI visual.&amp;nbsp; On the desktop, this seems to work wonderfully when I add have the following code in my script.r file and modelpath is a string parameter that is the URL to my file.&lt;/P&gt;&lt;PRE&gt;#Import web file if path is defined
if(modelpath != ""){
  source(modelpath)
}&lt;/PRE&gt;&lt;P&gt;I'm able to post an r script to github and Power BI Desktop (along with R) are able to download and import the file from github.&amp;nbsp; When I attempt to use this same visual with the online Power BI service, I get the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;In file(filename, "r", encoding = encoding) :

  InternetOpenUrl failed: 'The server name or address could not be resolved'


Please try again later or contact support. If you contact support, please provide these details.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have any suggestions?&lt;/P&gt;</description>
    <pubDate>Mon, 16 Sep 2019 20:57:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-09-16T20:57:46Z</dc:date>
    <item>
      <title>Downloading r scripts on-the-fly</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Downloading-r-scripts-on-the-fly/m-p/793658#M2555</link>
      <description>&lt;P&gt;I'm attempting to create a custom visual that downloads r scripts on-the-fly, but am running into a challenge with getting it to work in the Power BI Service.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've created a custom visual based off the RHTML template that is supposed to plot a graph, but I wanted to solve for a solution where our analysts can maintain &amp;amp; tweak their models without having to recompile the Power BI visual.&amp;nbsp; On the desktop, this seems to work wonderfully when I add have the following code in my script.r file and modelpath is a string parameter that is the URL to my file.&lt;/P&gt;&lt;PRE&gt;#Import web file if path is defined
if(modelpath != ""){
  source(modelpath)
}&lt;/PRE&gt;&lt;P&gt;I'm able to post an r script to github and Power BI Desktop (along with R) are able to download and import the file from github.&amp;nbsp; When I attempt to use this same visual with the online Power BI service, I get the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;In file(filename, "r", encoding = encoding) :

  InternetOpenUrl failed: 'The server name or address could not be resolved'


Please try again later or contact support. If you contact support, please provide these details.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have any suggestions?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2019 20:57:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Downloading-r-scripts-on-the-fly/m-p/793658#M2555</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-16T20:57:46Z</dc:date>
    </item>
  </channel>
</rss>

