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
Ajithd
Helper I
Helper I

Cannot install R packages. Any ideas please?

Error Message:
Failed to install dependency 'plotly' to 'C:\Users\**i\Library\3.5.2\plotly'.
Make sure 'https://cran.r-project.org' is accessible and contains the package 'plotly' compatible with the installed R version.
If you keep getting this error, clearing out 'C:\Users\Ajith.Dharmakeerthi\Library' might help.

Stack Trace:
at Microsoft.PowerBI.Scripting.R.Dependecies.RDependenciesWrapper.InstallDependency(String packageName, Int32 attempt)
at System.Threading.Tasks.Task.Execute()

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

3 REPLIES 3
Ajithd
Helper I
Helper I

amitchandak
Super User
Super User

@Ajithd, refer to these two solutions

https://community.powerbi.com/t5/Desktop/Error-installing-Plotly-R-package-for-custom-visuals/td-p/3...

https://community.powerbi.com/t5/Desktop/Using-Plot-ly-with-R-in-Power-BI-Desktop/td-p/391669

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi Amith, Thank fro your reply. I am not sure whre I should run this: install.packages("plotly") .

Thanks fro providing the second link.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

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

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.