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
yanivvl
Frequent Visitor

Cant display Clustering visual - R script error.

hi , i had Import from store Clustering visual , when i am trying to use it - i get the err : 

R script error.
Loading required package: XML
Loading required package: methods
Warning message:
package 'XML' was built under R version 3.3.3
Loading required package: htmlwidgets
Loading required package: nloptr
Loading required package: seriation
Loading required package: NbClust
Loading required package: cluster
Loading required package: car
Loading required package: scales
Loading required package: fpc
Loading required package: mclust
Package 'mclust' version 5.4
Type 'citation("mclust")' for citing this R package in publications.
Loading required package: apcluster  .........

i manage to install.packages("XML") and most of the other package BUT still the error message remain  ..

Any hope for solution ?  THANKS.

10 REPLIES 10
Anonymous
Not applicable

@yanivvl,

Please check if you install the right version of R in your machine. In my scenario, I can successfully import the clustering visual when I have R 3.3.0 or R 3.4.0 installed.

2.JPG
1.JPG


1.png

when importing the clustering visual, the R package dependencies should be auto-installed, please make sure all the packages have been installed completely. It should pop up a window as below when you first to use the clustering visual.
2.png

In addition, make sure that you use the latest version of Power BI Desktop(2.54.4970.961).



Regards,
Lydia

hi lydia , i had 2.53 version so i down load 2.54.4970.961 v,

my r packages installed on other machine so i point the "temporary storage location" :

r33.PNG

 

all the packages are there but it seems that it cant find them , and i steel get same error message :

r33 2.PNG

 

am i missing something ?    THANKS!

Anonymous
Not applicable

@yanivvl,

From the error message, it seems that your pre-installed packages are not compatible with the installed R on your current machine.

Have you tried to install higher version R(3.3.0 Or 3.4.0)? 



Regards,
Lydia

MY Version 3.3.2 - comes after 3.3    .

Anonymous
Not applicable

@yanivvl,

How is the issue going? What is the result after you install 3.3.0 or 3.4.0 R?

Regards,
Lydia

hi , the same  , no progress , i'm stack.  

3.3,2 isnt good ?  

Anonymous
Not applicable

@yanivvl,

Would you mind sharing the pre-downloaded packages to me? I will test it in my environment.

Regards,
Lydia

Of course, how can I deliver the packages to you?

Anonymous
Not applicable

@yanivvl,

You can upload these packages to OneDrive, and send me the shared link via Private Message.

Regards,
Lydia

hi Lydia , 

here is the link :

https://1drv.ms/f/s!AjgXaWBMO1sGdGt2nmC8Wh9Ui3Y

hope the upload done and complete ,

if you see any thng missing , pls alert me , thanks.

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.