cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kpratik Frequent Visitor
Frequent Visitor

R Visual Script Execution Time out

I have added a R Visual in my report. Here is the R Script which provides the visual as a Dataframe

 

install.packages("gridExtra",repos="http://cran.us.r-project.org")
library(gridExtra)

with(dataset, {
  out_matrix <- matrix(0,nrow=nlevels(ANSWER1), ncol=nlevels(ANSWER2),
                dimnames=list(levels(ANSWER1), levels(ANSWER2)))
  out_matrix [cbind(ANSWER1,ANSWER2)] <- COUNT
#grid.table(out_matrix )
Xsq <- chisq.test(out_matrix )
pvalue <- toString(Xsq$p.value)
df <- toString(Xsq$parameter)
csq <- toString(Xsq$statistic)

x<-data.frame(csq,df,pvalue)
names(x)<-c("Chi Square","Degree of Freedom","P Value")

mytheme <- gridExtra::ttheme_default(
    core = list(fg_params=list(hjust=1,x=1,cex = 2.0),bg_params=list(fill="white")),
    colhead = list(fg_params=list(cex = 1.0),bg_params=list(fill="white")),
    rowhead = list(fg_params=list(cex = 1.0)))

grid.table(x, rows = NULL,theme=mytheme )


})

This works fine in Power BI Desktop but when I publish it and try to open in Power BI Service I only "Script Execution Time Out"

Please help

 

Screen Shot 2018-05-23 at 7.48.40 AM.pngPower BI ServiceScreen Shot 2018-05-23 at 7.48.49 AM.pngPower BI Desktop

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: R Visual Script Execution Time out

HI @kpratik,

 

I'd like to suggest you take a look at following link which told about limitations of r visual:

 

Creating R visuals in the Power BI service

Known Limitations

R visuals in the Power BI service have a few limitations:

  • R visuals support is limited to the packages identified on the following page . There currently is no support for custom packages.
  • Data size limitations – data used by the R visual for plotting is limited to 150,000 rows. If more than 150,000 rows are selected, only the top 150,000 rows are used and a message is displayed on the image.
  • Calculation time limitation – if an R visual calculation exceeds 60 seconds the script times out, resulting in an error.
  • R visuals are refreshed upon data updates, filtering, and highlighting. However, the image itself is not interactive and does not support tool tips.
  • R visuals respond to highlighting other visuals, but you cannot click on elements in the R visual in order to cross filter other elements.
  • R visuals are currently not supported for the Time data type. Please use Date/Time instead.
  • R Visuals do not display when using Publish to web.
  • R visuals currently do not print with dashboard and reports printing
  • R visuals are currently not supported in the DirectQuery mode of Analysis Services

Regards,

Xiaoxin Sheng

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



For learning resources/Release notes, please visit: | |
3 REPLIES 3
Community Support Team
Community Support Team

Re: R Visual Script Execution Time out

HI @kpratik,

 

I'd like to suggest you take a look at following link which told about limitations of r visual:

 

Creating R visuals in the Power BI service

Known Limitations

R visuals in the Power BI service have a few limitations:

  • R visuals support is limited to the packages identified on the following page . There currently is no support for custom packages.
  • Data size limitations – data used by the R visual for plotting is limited to 150,000 rows. If more than 150,000 rows are selected, only the top 150,000 rows are used and a message is displayed on the image.
  • Calculation time limitation – if an R visual calculation exceeds 60 seconds the script times out, resulting in an error.
  • R visuals are refreshed upon data updates, filtering, and highlighting. However, the image itself is not interactive and does not support tool tips.
  • R visuals respond to highlighting other visuals, but you cannot click on elements in the R visual in order to cross filter other elements.
  • R visuals are currently not supported for the Time data type. Please use Date/Time instead.
  • R Visuals do not display when using Publish to web.
  • R visuals currently do not print with dashboard and reports printing
  • R visuals are currently not supported in the DirectQuery mode of Analysis Services

Regards,

Xiaoxin Sheng

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



For learning resources/Release notes, please visit: | |
kpratik Frequent Visitor
Frequent Visitor

Re: R Visual Script Execution Time out

Thank you. 

hanaroessler95 Frequent Visitor
Frequent Visitor

Re: R Visual Script Execution Time out

@v-shex-msft  I am having this same issue. Is there a way to edit the visual or timeout duration so my visual will load?

Helpful resources

Announcements
Back to School Contest

Back to School Contest

Engage and empower students with Power BI!

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Summit Australia 2019

Summit Australia 2019

Travel to Melbourne and network with thousands of peers!

PBI Community Highlights

PBI Community Highlights

Check out what's new in the Power BI Community!

Top Ideas
Users Online
Currently online: 29 members 829 guests
Please welcome our newest community members: