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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.