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
Izabelafs
New Member

Report containing Rscript fails to render in the web version

Hello,

 

I am currently building a report and need a specific graph which I coded in R. It works flawlessly on the desktop PBI but crashes in the web report. Has anyone experienced such an issue?

 

This is the source code in R: 

 

 

 # library
library(ggridges)
library(ggplot2)
library(viridis)
library(dplyr)

library(forcats)

# Plot
dataset %>%
group_by(Year,Month) %>%
ggplot(aes(x = .value, y = `Month`, fill = 0.5 - abs(0.5-stat(ecdf)))) +
         stat_density_ridges(geom = "density_ridges_gradient", calc_ecdf = TRUE) +
         scale_fill_viridis_c(name = "Tail probability", direction = -1) +
         theme_ridges()
And the issue issued by the web  report:
 
Error in if (params$panel_scaling) { : argument is of length zero
Please try again later or contact support. If you contact support, please provide these details.

  • Activity IDa2a6672e-d388-4e5e-920e-2744e8a3d307
  • Request ID7432c1cd-89a0-4b04-92a7-a09b217ef60a
  • Correlation ID832e3b8a-e6e7-c59e-8273-5ed2bda46411
  • TimeFri Sep 15 2023 16:32:18 GMT+0200 (Central European Summer Time)
  • Service version13.0.21509.81
  • Client version2309.1.15569-train
  • Cluster URI
Any help is welcomed.
1 REPLY 1
TomMartens
Super User
Super User

Hey @Izabelafs , 

 

check the versions of the packages you are using locally and if these versions are the same that are supported by the Power BI Service, here you will find the packages and versions: https://learn.microsoft.com/en-us/power-bi/connect-data/service-r-packages-support.
Maybe there is a change in behavior in one of the packages with a newer version.

 

Hopefully, this provides an idea of how to tackle your challenge.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

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 Kudoed Authors