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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.