Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
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?
Solved! Go to Solution.
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.
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
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?
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
Hi @Anonymous ,
I made a few visuals, here is one example. Like I said, it all works fine in Desktop, and only generates an error after I publish to my workspace.
Hi, @marta1706
After testing, PBI Service can view visual objects normally. Forgetting a bit about what your data is, you can share pbix files (Google Drive/One Drive) without sensitive data, screenshots, etc. to help us reproduce your problem faster.
Best Regards,
Yang
Community Support Team
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.
Hi @Anonymous ,
Thanks! I can also view them normally in Desktop, which is what I think you're showing me screenshots of. The error happens when the file is published to a workspace.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.