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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.