<?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: R Script Error - Interactive R custom visuals in Power BI Desktop in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/R-Script-Error-Interactive-R-custom-visuals-in-Power-BI-Desktop/m-p/3617500#M8617</link>
    <description>&lt;P&gt;I am a pro user, I think we can create our own custom Power BI visuals that is&amp;nbsp;&lt;SPAN&gt;packaged in single&amp;nbsp;&lt;/SPAN&gt;.pbiviz&lt;SPAN&gt;&amp;nbsp;file and can be imported into the report.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.google.com/url?sa=t&amp;amp;rct=j&amp;amp;q=&amp;amp;esrc=s&amp;amp;source=web&amp;amp;cd=&amp;amp;cad=rja&amp;amp;uact=8&amp;amp;ved=2ahUKEwicyt_V-8WDAxWfRPEDHYv8C6cQFnoECBQQAw&amp;amp;url=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fpower-bi%2Fdeveloper%2Fvisuals%2Fdevelop-power-bi-visuals%23%3A~%3Atext%3DPower%2520BI%2520visual%2520packages%2C-Power%2520BI%2520visuals%26text%3Dpbiviz%2520files%2520that%2520include%2520code%2Clocal%2520computer%2520into%2520Power%2520BI.&amp;amp;usg=AOvVaw3ykn74LET0rLqVENSjz63m&amp;amp;opi=89978449" target="_blank"&gt;https://www.google.com/url?sa=t&amp;amp;rct=j&amp;amp;q=&amp;amp;esrc=s&amp;amp;source=web&amp;amp;cd=&amp;amp;cad=rja&amp;amp;uact=8&amp;amp;ved=2ahUKEwicyt_V-8WDAxWfRPEDHYv8C6cQFnoECBQQAw&amp;amp;url=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fpower-bi%2Fdeveloper%2Fvisuals%2Fdevelop-power-bi-visuals%23%3A~%3Atext%3DPower%2520BI%2520visual%2520packages%2C-Power%2520BI%2520visuals%26text%3Dpbiviz%2520files%2520that%2520include%2520code%2Clocal%2520computer%2520into%2520Power%2520BI.&amp;amp;usg=AOvVaw3ykn74LET0rLqVENSjz63m&amp;amp;opi=89978449&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Jan 2024 09:47:32 GMT</pubDate>
    <dc:creator>AJ_2024</dc:creator>
    <dc:date>2024-01-05T09:47:32Z</dc:date>
    <item>
      <title>R Script Error - Interactive R custom visuals in Power BI Desktop</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/R-Script-Error-Interactive-R-custom-visuals-in-Power-BI-Desktop/m-p/3615855#M8613</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to build an interactive control chart in Ppower BI Desktop. I followed a step-to-step procedure as described in the community link&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/The-R-code-didn-t-result-in-creation-of-any-visuals/ba-p/2549079" target="_blank"&gt;The R code didn't result in creation of any visual... - Microsoft Fabric Community&lt;/A&gt;&amp;nbsp;but getting an R script error as:&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="AJ_2024_1-1704380133920.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1019980iD730BF21F4A7E8E6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AJ_2024_1-1704380133920.png" alt="AJ_2024_1-1704380133920.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;source('./r_files/flatten_HTML.r')&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;############### Library Declarations ###############&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;libraryRequireInstall("ggplot2");&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;libraryRequireInstall("plotly")&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;####################################################&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;################### Actual code ####################&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;g = qplot(`Petal.Length`, data = Values, fill = `Species`, main = Sys.time());&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;####################################################&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;############# Create and save widget ###############&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;p = ggplotly(g);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;internalSaveWidget(p, 'out.html');&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;####################################################&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;################ Reduce paddings ###################&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;ReadFullFileReplaceString('out.html', 'out.html', ',"padding":[0-9]*,', ',"padding":0,')&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;####################################################&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I spent loads of time on error resolution but didn't get through. Can someone in the community help me please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks In Advance;&lt;/P&gt;&lt;P&gt;Abhi&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 14:58:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/R-Script-Error-Interactive-R-custom-visuals-in-Power-BI-Desktop/m-p/3615855#M8613</guid>
      <dc:creator>AJ_2024</dc:creator>
      <dc:date>2024-01-04T14:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: R Script Error - Interactive R custom visuals in Power BI Desktop</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/R-Script-Error-Interactive-R-custom-visuals-in-Power-BI-Desktop/m-p/3616633#M8614</link>
      <description>&lt;P&gt;You cannot bring your own renderer. Only the standard plotting device is supported.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-r-visuals#known-limitations" target="_blank"&gt;Create Power BI visuals using R - Power BI | Microsoft Learn&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 00:33:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/R-Script-Error-Interactive-R-custom-visuals-in-Power-BI-Desktop/m-p/3616633#M8614</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-01-05T00:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: R Script Error - Interactive R custom visuals in Power BI Desktop</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/R-Script-Error-Interactive-R-custom-visuals-in-Power-BI-Desktop/m-p/3617500#M8617</link>
      <description>&lt;P&gt;I am a pro user, I think we can create our own custom Power BI visuals that is&amp;nbsp;&lt;SPAN&gt;packaged in single&amp;nbsp;&lt;/SPAN&gt;.pbiviz&lt;SPAN&gt;&amp;nbsp;file and can be imported into the report.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.google.com/url?sa=t&amp;amp;rct=j&amp;amp;q=&amp;amp;esrc=s&amp;amp;source=web&amp;amp;cd=&amp;amp;cad=rja&amp;amp;uact=8&amp;amp;ved=2ahUKEwicyt_V-8WDAxWfRPEDHYv8C6cQFnoECBQQAw&amp;amp;url=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fpower-bi%2Fdeveloper%2Fvisuals%2Fdevelop-power-bi-visuals%23%3A~%3Atext%3DPower%2520BI%2520visual%2520packages%2C-Power%2520BI%2520visuals%26text%3Dpbiviz%2520files%2520that%2520include%2520code%2Clocal%2520computer%2520into%2520Power%2520BI.&amp;amp;usg=AOvVaw3ykn74LET0rLqVENSjz63m&amp;amp;opi=89978449" target="_blank"&gt;https://www.google.com/url?sa=t&amp;amp;rct=j&amp;amp;q=&amp;amp;esrc=s&amp;amp;source=web&amp;amp;cd=&amp;amp;cad=rja&amp;amp;uact=8&amp;amp;ved=2ahUKEwicyt_V-8WDAxWfRPEDHYv8C6cQFnoECBQQAw&amp;amp;url=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fpower-bi%2Fdeveloper%2Fvisuals%2Fdevelop-power-bi-visuals%23%3A~%3Atext%3DPower%2520BI%2520visual%2520packages%2C-Power%2520BI%2520visuals%26text%3Dpbiviz%2520files%2520that%2520include%2520code%2Clocal%2520computer%2520into%2520Power%2520BI.&amp;amp;usg=AOvVaw3ykn74LET0rLqVENSjz63m&amp;amp;opi=89978449&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 09:47:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/R-Script-Error-Interactive-R-custom-visuals-in-Power-BI-Desktop/m-p/3617500#M8617</guid>
      <dc:creator>AJ_2024</dc:creator>
      <dc:date>2024-01-05T09:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: R Script Error - Interactive R custom visuals in Power BI Desktop</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/R-Script-Error-Interactive-R-custom-visuals-in-Power-BI-Desktop/m-p/3626788#M8644</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/668789"&gt;@AJ_2024&lt;/a&gt; from the error, looks like you are missing some libraries, xml2, htmlwidgets. Do you want to try installing them and see if it works. If you have already installed them and it still does not work (which happened to me), the following worked for me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;When I run R in PBI, the packages are accessed by PBI from C:\Users\xxxx\Library. However, when I install the packages from R studio, the installed packages get saved in C:\Users\xxxx\Documents\R\win-library\3.5. Therefore, I changed the default path of "Install to Library:" in R studio from C:\Users\xxxx\Documents\R\win-library\3.5 to C:\Users\xxxx\Library and I got the desired output.&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2024 13:54:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/R-Script-Error-Interactive-R-custom-visuals-in-Power-BI-Desktop/m-p/3626788#M8644</guid>
      <dc:creator>smpa01</dc:creator>
      <dc:date>2024-01-09T13:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: R Script Error - Interactive R custom visuals in Power BI Desktop</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/R-Script-Error-Interactive-R-custom-visuals-in-Power-BI-Desktop/m-p/3650305#M8792</link>
      <description>&lt;P&gt;This worked for me. Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jan 2024 17:56:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/R-Script-Error-Interactive-R-custom-visuals-in-Power-BI-Desktop/m-p/3650305#M8792</guid>
      <dc:creator>AJ_2024</dc:creator>
      <dc:date>2024-01-21T17:56:54Z</dc:date>
    </item>
  </channel>
</rss>

