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
yasminjsc
Regular Visitor

Script R

I have installed the Script R, but when i try to execute a visual (funnel plot) with Script R, it not works. There is a message saying that "The package 'XML' was not installed". What can I do to fix it?

Thank you

1 ACCEPTED SOLUTION

Powerbi normally ask to install pacakges needed. If this doesn't work you can install then in R first.

 

Open R or R Studio and either use the install packages menu (or in r studio the pacakges panel or enter

 

install.packages("XML")

It will prompt for a server to get the package from.

 

This loads the library and will error if the package has not been installed.

library("XML")

 

View solution in original post

2 REPLIES 2
ask4atish
Advocate III
Advocate III

Hi @yasminjsc,

 

Please have a look at the below mentioned URL. I think this is what you are looking for.

 

http://community.powerbi.com/t5/Integrations-with-Files-and/cannot-use-custom-visual-with-R/td-p/220...

 

Regards,

Atish

Powerbi normally ask to install pacakges needed. If this doesn't work you can install then in R first.

 

Open R or R Studio and either use the install packages menu (or in r studio the pacakges panel or enter

 

install.packages("XML")

It will prompt for a server to get the package from.

 

This loads the library and will error if the package has not been installed.

library("XML")

 

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.