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

Shape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.

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!:
Power BI Cookbook Third Edition (Color)

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!:
Power BI Cookbook Third Edition (Color)

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!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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