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

Error when saving html visual (R custom)

When I run the custom visual in PBI I get this error from internalsavewidget:

 

Error in system.file(config, package = package) :
'package' must be of length 1
Calls: internalSaveWidget ... getDependency -> <Anonymous> -> inherits -> system.file
Execution halted"

 

 

The code is working fine and producing the expected output when I have tested it in R so I do not understand where it comes from. The plot is created from this line:

 

p<- ggplotly(p) %>%
layout(annotations = list(x = 1.5*y.o, y = round(ylims,1), text = paste0("p-value: ",pvalue), showarrow = F))

internalSaveWidget(p,"out.html")

 

I  can only wonder if the "%>%" is messing some things up?

 

 

Thanks in advance.

 

Edited to add full errror message

1 ACCEPTED SOLUTION

Have you also included the dplyr library?

 

libraryRequireInstall("dplyr");

View solution in original post

4 REPLIES 4
sona93
Regular Visitor

Do you have any updates on the case, 

Have you also included the dplyr library?

 

libraryRequireInstall("dplyr");

Perfect, now it works - thanks so much!

v-viig
Community Champion
Community Champion

We would recommend you should send this issue to pbircvsupport@microsoft.com.

This email alias is maintained by experienced R developer.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.