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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
id013
Helper V
Helper V

Unable to Use R Visual in Service

Hi,

So I'm currently trying to create a violin plot in Power BI. It works fine in desktop but as as soon as I upload it to service it fails to render and just gives me the following: 

Script Runtime Error

An error occurred while running the script

 

In fairness this is using the most up to date version of R and I've read that the version the service runs is R 3.4.4??? The problem is none of the packages I'm using even work with that version. I've tried downgrading the version I'm using on desktop to see if I can get it work with earlier versions but the earliest version that works in desktop is 4.2.2. 

 

Package List: 

library(dplyr)
library(dbplyr)
library(ggplot2)
library(viridis)
library(grid)

Is there any other options or should I just stop using the R visual? 

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

@id013 Make sure that all of your libraries are supported and that you aren't using features from a library version that is not supported. All of your libraries seem to be supported but you might be using code that only works in a version that is higher than the supported version in the service.

Learn which R packages are supported - Power BI | Microsoft Learn

 


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

3 REPLIES 3
Greg_Deckler
Super User
Super User

@id013 Make sure that all of your libraries are supported and that you aren't using features from a library version that is not supported. All of your libraries seem to be supported but you might be using code that only works in a version that is higher than the supported version in the service.

Learn which R packages are supported - Power BI | Microsoft Learn

 


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler 

Sigh ok I was afraid you were going to say that. So I basically have to try re-writing my R scripts to work with the older versions of the library? Is that even possible? For example one of the dependencies for dplyr fails to install due to a compilation error.

@id013 Yeah, sorry. It's why I tend to avoid both R and Python for pretty much anything. It's a real pain in innumerable ways.


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors