<?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 text sizing Bug in Service</title>
    <link>https://community.fabric.microsoft.com/t5/Service/R-text-sizing-Bug/m-p/458107#M48331</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;, your issue seems to be a separate problem than what other people are facing. Did this use to work in PBI Service? From my initial testing it doesn't seem to work in PBI Desktop either (though I see expected behavior in RStudio).&lt;BR /&gt;&lt;BR /&gt;Edit:&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;actually it does work (:&lt;BR /&gt;In your first post you had the plotting with "&lt;SPAN&gt;cex = i*j"&lt;/SPAN&gt;&lt;BR /&gt;And in your follow-up with our provided fix you have it with "cex = 4"&lt;BR /&gt;I copied one script into my local PBI Desktop and the other into my RStudio, thinking they were identical except for the workaround, and was very confused!&lt;BR /&gt;Please try in service with actual changing text size, you'll see it!&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Lucas&lt;/P&gt;</description>
    <pubDate>Mon, 09 Jul 2018 19:51:54 GMT</pubDate>
    <dc:creator>LucasPritz</dc:creator>
    <dc:date>2018-07-09T19:51:54Z</dc:date>
    <item>
      <title>R text sizing Bug</title>
      <link>https://community.fabric.microsoft.com/t5/Service/R-text-sizing-Bug/m-p/451541#M47673</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;The text sizing in R seems to incorrect recently. Can anyone help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using custom R visuals. I simply use "plot" and "text" to plot some text. I use parameter "cex" in "text". It works in Power BI desktop and R studio, but the text shows really small in Power BI service.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jun 2018 15:46:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Service/R-text-sizing-Bug/m-p/451541#M47673</guid>
      <dc:creator>BLPYPL</dc:creator>
      <dc:date>2018-06-29T15:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: R text sizing Bug</title>
      <link>https://community.fabric.microsoft.com/t5/Service/R-text-sizing-Bug/m-p/451539#M47741</link>
      <description>&lt;P&gt;We are using some of the custom R visuals in Power BI. The text size in R seems to not working since today. The size become really small and you can hardly see it. It works fine on both Power BI desktop and my R studio. It didn't turn out to be this way sometime ago. Can someone tell me how to work around this issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I simply use plot function and text function. I use CEX to set the text sizing.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jun 2018 15:41:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Service/R-text-sizing-Bug/m-p/451539#M47741</guid>
      <dc:creator>BLPYPL</dc:creator>
      <dc:date>2018-06-29T15:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: R text sizing Bug</title>
      <link>https://community.fabric.microsoft.com/t5/Service/R-text-sizing-Bug/m-p/451758#M47696</link>
      <description>&lt;P&gt;Here is the code to reproduce the bug:&lt;/P&gt;&lt;P&gt;1. Create a Power BI report and R visual&lt;/P&gt;&lt;P&gt;2. paste following code:&lt;/P&gt;&lt;P&gt;.text="testing%"&lt;BR /&gt;par(mar = c(0,0,0,0),bg=NA,cex=3.5)&lt;BR /&gt;plot(c(0, 1), c(0, 1),ann = F,asp=1, bty = 'n', type = 'n', xaxt = 'n', yaxt = 'n')&lt;/P&gt;&lt;P&gt;text(x = 0.5, y = 0.2, .text,&lt;BR /&gt;col = "red")&lt;/P&gt;&lt;P&gt;3. Publish it to Power BI service&lt;/P&gt;&lt;P&gt;4.Compare the desktop and service version. You will see the text sizing is not correct in the service&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried serveral parameters, such as cex, ps, but none seems to work. Can anyone help?&lt;/P&gt;</description>
      <pubDate>Sat, 30 Jun 2018 01:38:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Service/R-text-sizing-Bug/m-p/451758#M47696</guid>
      <dc:creator>BLPYPL</dc:creator>
      <dc:date>2018-06-30T01:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: R text sizing Bug</title>
      <link>https://community.fabric.microsoft.com/t5/Service/R-text-sizing-Bug/m-p/452564#M47767</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="70331" data-lia-user-login="BLPYPL" class="lia-mention lia-mention-user"&gt;BLPYPL&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Thank you for such detailed information, I can reproduce the issue and I am checking with engineer whether it is a bug and when and how to fix it.&lt;/P&gt;&lt;P&gt;I will come back to tell you if there is any update.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Reagrds&lt;/P&gt;&lt;P&gt;Maggie&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jul 2018 10:17:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Service/R-text-sizing-Bug/m-p/452564#M47767</guid>
      <dc:creator>v-juanli-msft</dc:creator>
      <dc:date>2018-07-02T10:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: R text sizing Bug</title>
      <link>https://community.fabric.microsoft.com/t5/Service/R-text-sizing-Bug/m-p/453683#M47890</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Same issue here.&lt;/P&gt;&lt;P&gt;We have first noticed the problem on 26 june.&lt;/P&gt;&lt;P&gt;I attach a sample code to reproduce the issue; a curious fact is that the problem does not affect the text colour!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;library(grid)&lt;BR /&gt;library(gridExtra)&lt;/P&gt;&lt;P&gt;d &amp;lt;- head(iris, 3)&lt;BR /&gt;g &amp;lt;- tableGrob(d)&lt;/P&gt;&lt;P&gt;find_cell &amp;lt;- function(table, row, col, name="core-fg"){&lt;BR /&gt;l &amp;lt;- table$layout&lt;BR /&gt;which(l$t==row &amp;amp; l$l==col &amp;amp; l$name==name)&lt;BR /&gt;}&lt;BR /&gt;for(i in 2:4){&lt;BR /&gt;for(j in 2:6){&lt;BR /&gt;index_fg &amp;lt;- find_cell(g, i, j, "core-fg")&lt;BR /&gt;g$grobs[index_fg][[1]][["gp"]] &amp;lt;- gpar(cex = i*j, col = "green")&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;grid.newpage()&lt;BR /&gt;grid.draw(g)&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jul 2018 12:29:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Service/R-text-sizing-Bug/m-p/453683#M47890</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-03T12:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: R text sizing Bug</title>
      <link>https://community.fabric.microsoft.com/t5/Service/R-text-sizing-Bug/m-p/457567#M48276</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="70331" data-lia-user-login="BLPYPL" class="lia-mention lia-mention-user"&gt;BLPYPL&lt;/a&gt;Anonymous&lt;/a&gt;&lt;/P&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN&gt;There was a bug fix a little while ago that appears to have unintentionally led to this regression. We already know the fix, we can start right away on getting it deployed, though it may take a little while.&lt;BR /&gt;&lt;BR /&gt;In the meantime if this is causing issues, there is a workaround. You can add the following lines to the beginning of your R script:&lt;BR /&gt;&lt;BR /&gt;if (exists("powerbi_rFontName")){&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN&gt;&amp;nbsp; library("showtext")&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN&gt;&amp;nbsp; showtext.opts(dpi = powerbi_rPngDeviceDpi)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN&gt;&amp;nbsp; showtext.auto()&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN&gt;}&lt;BR /&gt;&lt;BR /&gt;I created a PBIX with 2 R visuals, 1 without the fix and one with. I’ve pasted below 2 screenshots I took: one of the visuals in PBI Desktop, and another of the same pbix once published to service. Once the fix is deployed, these lines can be removed, but they should not cause any issues if you leave them.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN&gt;Best Regards&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN&gt;Maggie&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 09 Jul 2018 08:14:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Service/R-text-sizing-Bug/m-p/457567#M48276</guid>
      <dc:creator>v-juanli-msft</dc:creator>
      <dc:date>2018-07-09T08:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: R text sizing Bug</title>
      <link>https://community.fabric.microsoft.com/t5/Service/R-text-sizing-Bug/m-p/457684#M48290</link>
      <description>&lt;P&gt;Hi Maggie,&lt;/P&gt;&lt;P&gt;Unfortunately this work around does not work with both my production and test code.&lt;/P&gt;&lt;P&gt;Below you can find my test code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if (exists("powerbi_rFontName")){&lt;BR /&gt;library("showtext")&lt;BR /&gt;showtext.opts(dpi = powerbi_rPngDeviceDpi)&lt;BR /&gt;showtext.auto()&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;library(grid)&lt;BR /&gt;library(gridExtra)&lt;/P&gt;&lt;P&gt;d &amp;lt;- head(iris, 3)&lt;BR /&gt;g &amp;lt;- tableGrob(d)&lt;/P&gt;&lt;P&gt;find_cell &amp;lt;- function(table, row, col, name="core-fg"){&lt;BR /&gt;l &amp;lt;- table$layout&lt;BR /&gt;which(l$t==row &amp;amp; l$l==col &amp;amp; l$name==name)&lt;BR /&gt;}&lt;BR /&gt;for(i in 2:4){&lt;BR /&gt;for(j in 2:6){&lt;BR /&gt;index_fg &amp;lt;- find_cell(g, i, j, "core-fg")&lt;BR /&gt;g$grobs[index_fg][[1]][["gp"]] &amp;lt;- gpar(cex = 4, col = "green")&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;grid.newpage()&lt;BR /&gt;grid.draw(g)&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jul 2018 09:52:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Service/R-text-sizing-Bug/m-p/457684#M48290</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-09T09:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: R text sizing Bug</title>
      <link>https://community.fabric.microsoft.com/t5/Service/R-text-sizing-Bug/m-p/458107#M48331</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;, your issue seems to be a separate problem than what other people are facing. Did this use to work in PBI Service? From my initial testing it doesn't seem to work in PBI Desktop either (though I see expected behavior in RStudio).&lt;BR /&gt;&lt;BR /&gt;Edit:&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;actually it does work (:&lt;BR /&gt;In your first post you had the plotting with "&lt;SPAN&gt;cex = i*j"&lt;/SPAN&gt;&lt;BR /&gt;And in your follow-up with our provided fix you have it with "cex = 4"&lt;BR /&gt;I copied one script into my local PBI Desktop and the other into my RStudio, thinking they were identical except for the workaround, and was very confused!&lt;BR /&gt;Please try in service with actual changing text size, you'll see it!&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Lucas&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jul 2018 19:51:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Service/R-text-sizing-Bug/m-p/458107#M48331</guid>
      <dc:creator>LucasPritz</dc:creator>
      <dc:date>2018-07-09T19:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: R text sizing Bug</title>
      <link>https://community.fabric.microsoft.com/t5/Service/R-text-sizing-Bug/m-p/458289#M48351</link>
      <description>&lt;P&gt;Hi Maggie,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this solution and it works for me. Please keep me updated when the bug is fixed.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jul 2018 03:48:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Service/R-text-sizing-Bug/m-p/458289#M48351</guid>
      <dc:creator>BLPYPL</dc:creator>
      <dc:date>2018-07-10T03:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: R text sizing Bug</title>
      <link>https://community.fabric.microsoft.com/t5/Service/R-text-sizing-Bug/m-p/458729#M48381</link>
      <description>&lt;P&gt;Hi Lucas,&lt;/P&gt;&lt;P&gt;Thanks for your support.&lt;/P&gt;&lt;P&gt;While creating a reply to your request the work-around started to work.&lt;/P&gt;&lt;P&gt;To be honest, it is working only with the test code, not with the production one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll let you know if I will be able to fix also the production environment.&lt;/P&gt;&lt;P&gt;Here below the working test code (same as yesterday...)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if (exists("powerbi_rFontName")){&lt;BR /&gt;library("showtext")&lt;BR /&gt;showtext.opts(dpi = powerbi_rPngDeviceDpi)&lt;BR /&gt;showtext.auto()&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;library(grid)&lt;BR /&gt;library(gridExtra)&lt;/P&gt;&lt;P&gt;d &amp;lt;- head(iris, 3)&lt;BR /&gt;g &amp;lt;- tableGrob(d)&lt;/P&gt;&lt;P&gt;find_cell &amp;lt;- function(table, row, col, name="core-fg"){&lt;BR /&gt;l &amp;lt;- table$layout&lt;BR /&gt;which(l$t==row &amp;amp; l$l==col &amp;amp; l$name==name)&lt;BR /&gt;}&lt;BR /&gt;for(i in 2:4){&lt;BR /&gt;for(j in 2:6){&lt;BR /&gt;index_fg &amp;lt;- find_cell(g, i, j, "core-fg")&lt;BR /&gt;g$grobs[index_fg][[1]][["gp"]] &amp;lt;- gpar(cex = 4, col = "green")&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;grid.newpage()&lt;BR /&gt;grid.draw(g)&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jul 2018 11:05:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Service/R-text-sizing-Bug/m-p/458729#M48381</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-10T11:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: R text sizing Bug</title>
      <link>https://community.fabric.microsoft.com/t5/Service/R-text-sizing-Bug/m-p/459614#M48444</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="71501" data-lia-user-login="LucasPritz" class="lia-mention lia-mention-user"&gt;LucasPritz&lt;/a&gt;,&lt;BR /&gt;I've finally found the problem with my production code.&lt;/P&gt;&lt;P&gt;While the test code I've shared contains the following command, it is missing in my production code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;grid.newpage()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've added this&amp;nbsp;command in my production code and now it correctly works.&lt;/P&gt;&lt;P&gt;I do not understand why the use of grid.newpage() is mandatory, but now the work-around works and it is the important thing!&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2018 09:12:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Service/R-text-sizing-Bug/m-p/459614#M48444</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-11T09:12:39Z</dc:date>
    </item>
  </channel>
</rss>

