Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

Power BI can't show basic text results via the R script visual ?

Can the R custom visual not show text results? 


I just used the summary(dataset) function. And in R this properly shows the min/max/median/etc. but when I attempt the same script in R within Power BI I get the following error message:

 

"No image was created. The R code didn't result in a creation of any visuals. Make sure your R script results in a plot to the R default device."

 

I've correctly run R scripts via Power BI before, so I don't think my setup is incorrect. It seems odd though that Power BI can't display any/all output from an R script. This is frustrating, especially when it comes to troubleshooting.

 

Am I not looking at this correctly? Or is there something I'm missing?

 

 

Any thoughts/suggestions would help.

 

Thanks!

Jonathan 

  • Hi Anonymous

     

    As you say R script visual only show image but a possible way to display the result of summary function is to use the grid.table function of the gridExtra package . I make an example with the iris dataset. See image below.

     

     

    Surely this does not cover all your needs but I hope it will help you.

     

    Regards,

    Dani

7 Replies

  • Hi Anonymous

     

    As you say R script visual only show image but a possible way to display the result of summary function is to use the grid.table function of the gridExtra package . I make an example with the iris dataset. See image below.

     

     

    Surely this does not cover all your needs but I hope it will help you.

     

    Regards,

    Dani

  • dannn777's avatar
    dannn777
    Frequent Visitor

    i believe all R output should be of image datatype rather than string.. hence "visual"