Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
kimchizal
Helper II
Helper II

R script/visual runs in Desktop but not in Service

I'm running a few R visuals on a page but the main one isn't working. The R script gets executed and displayed perfectly fine in PowerBI Desktop, but it's throwing this error when I try to load it in PowerBI Service. I haven't set any parameters regarding "angle" so I'm even more thrown off by this error. Any help would be much appreciated, as I wasn't expecting this type of error after hours of development.

Error with details is:

 

Loading required package: magrittr Loading required package: sysfonts [1] "font in use: arial.ttf" Error in element_grob.element_text(el, ...) : Text element requires non-NULL value for 'angle'. In addition: Warning message: package 'ggpubr' was built under R version 3.4.2
Please try again later or contact support. If you contact support, please provide these details.

Activity ID8b9708d9-e665-488d-91fa-d05cdfdaf013
Request ID895d6fab-3c44-40f7-4b6d-1e6b3b382947
Correlation ID699f5c54-ba56-5dc1-7f0d-3e5aff6ea738
TimeTue Jan 08 2019 16:37:02 GMT-0500 (Eastern Standard Time)
Version13.0.7840.225

 

 

3 REPLIES 3
chass
Impactful Individual
Impactful Individual

What version of the ggpubr package are you using? 

We only support 0.1.5 https://docs.microsoft.com/en-us/power-bi/service-r-packages-support

...So we are about 5 builds behind

 

 

Chuck Sterling

I still get the same error when I remove the ggpubr function and a bit of the plotting arguments:

 

pq1_plop <-  ggplot(pq1_agged, aes(y=cat, x=mean_2008)) +
  geom_point(color="#2b8cbe", fill="#2b8cbe", size=4, pch=16) +
  geom_point(aes(x =abc_mean), color="#feb24c", fill="#feb24c", size=4, pch=3) +
  geom_point(aes(x = def_mean), color="#31a354", fill="#31a354", size=4, pch=3) +
  geom_point(aes(x = mean_2007), color="#b3daff", fill="#b3daff", size=4, pch=16) +
  ylab("Program ") +
  scale_y_discrete(labels = function(mean_2008) str_wrap(mean_2008, width = 50)) +
  scale_x_continuous(sec.axis = dup_axis(), lim = c(1, 4)) +
  theme_bw()

 

 

Error is:

 

Stackoverflow is a great place to get help: http://stackoverflow.com/tags/ggplot2. Loading required package: magrittr Loading required package: sysfonts [1] "font in use: arial.ttf" Error in element_grob.element_text(el, ...) : Text element requires non-NULL value for 'angle'. In addition: Warning message: package 'ggpubr' was built under R version 3.4.2
Please try again later or contact support. If you contact support, please provide these details.

Activity ID01f054ba-88c3-4eb6-9543-ac4f535beebb
Request ID79bb56ad-0f6f-190b-6332-29a9145125f3
Correlation IDc58a2e1d-a60e-0591-4905-16c594249047
TimeWed Jan 09 2019 09:41:48 GMT-0500 (Eastern Standard Time)
Version13.0.7840.225
 
I had a call for theme and a bunch of settings within it that used `element_text` but I removed them, so the chunk of code up above is what's left and executed within PowerBI Desktop. It runs fine without any issues there

HI @kimchizal,

 

It seems like you are test with an old version R script with correspond R packages.

According to your error message, it seems like old version R packages has some compatibility issue with new version on service side.

I'd like to suggest you update your R scripts to last version and try again(last version 3.5.2).

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors