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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live 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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

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.