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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Not able to install R library in PowerBI

Hi, 

 

I am trying to install R library in PowerBI R editor

 

If i write: 

install.packages('mice', lib=.libPaths())
I get error message that
the lib element  C:\Program Files\R\R-3.6.2\library is not a writable directory
 
If i write
install.packages('mice')
I get
 
Error Message:
R script error.
Installing package into 'C:/Users/my name/Library'
(as 'lib' is unspecified)
Error in contrib.url(repos, "source") :
trying to use CRAN without setting a mirror
Calls: install.packages -> contrib.url
Execution halted
 
If i write
install.packages("plotrix", lib = "C:/Program Files/R/R-3.6.3/library")
I get the same error message as above.
What should I do???
 
Thanks in advance!
11 REPLIES 11

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.