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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
brucruz
Frequent Visitor

[R] Error: package or namespace load failed for 'ggplot2'

Hey guys, I'm really stuck and need some help.

 

After installing R 3.5.1, I'm getting this error message on R visualizations which were previously working

 

"Error: package or namespace load failed for 'ggplot2': package 'scales' was installed by an R version with different internals; it needs to be reinstalled for use with this R version."

 

I already tried to:

- reinstall R 3.5.1

- reinstall RStudio

- reinstall ggplot2 and scales package

- reinstall all packages

- reinstall Power BI Desktop

 

Still it does not work.

 

Considerations:

- My visualizations were working well before I installed R 3.5.1

- My visualizations are working well on other PCs

 

Any thoughts?

1 REPLY 1
v-cherch-msft
Microsoft Employee
Microsoft Employee

Hi @brucruz

 

Below is the similar post for you to check if it could help you.

https://community.powerbi.com/t5/Desktop/R-Visual-Rcpp-package-error/td-p/471272

 

Regards,

Cherie

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

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.