Forum Discussion

marta1706's avatar
marta1706
Regular Visitor
2 years ago
Solved

R script visual not displaying correctly after PowerBI report published

I created an R script visual in my PowerBI report using PowerBI Desktop. The visual displays correctly on my end, but when I publish the report to my workspace, I get the following error:

 

Other community posts suggested I might be using the wrong version of R, so I installed R 3.4.4, changed default R installation in PowerBI, and tried that. It hasn't worked because my visual uses tidyverse, and I haven't been able to install tidyverse in R 3.4.4 (I tried with the default install.packages command as well as pointing to a tar.gz file in tidyverse archive - tried version 1.2.1 and 1.3.0).

 

Is there a trick to making R script visuals work after file is published?

  • Hi Anonymous ,

     

    I think this can be closed now - I found a solution. After installing R 3.4.4, I manually installed all the requirements for tidyverse 1.2.1, after which I could install tidyverse 1.2.1 and use it in PowerBI. Image is now displaying correctly after publishing.

7 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi, marta1706 

    You can visit the following link and download version 4.4.1 to install the tidyverse properly in Rstudio.

    Download R-4.4.1 for Windows. The R-project for statistical computing.

     

    Best Regards,
    Yang

    Community Support Team

     

    If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
    If I misunderstand your needs or you still have problems on it, please feel free to let us know.
    Thanks a lot!

    How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

    • marta1706's avatar
      marta1706
      Regular Visitor

      Hi Anonymous ,

       

      Thanks. I know I can do that - it's what resulted in the error message I screenshot in my post. I only tried R 3.4.4 later, because Microsoft say that this is the highest version of R compatible with PowerBI: see here.

       

      Is there anything else I can do? Has anyone else had this problem?

      • Anonymous's avatar
        Anonymous
        Not applicable

        Hi, marta1706 

        Ok, I know it, what R code you used in PBI Desktop, you can share it and we will test to find suitable solutions.

        Best Regards,
        Yang

        Community Support Team