cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Booth070 Frequent Visitor
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

Accepted Solutions
PoolR
Advisor

Re: Error when saving html visual (R custom)

Have you also included the dplyr library?

 

libraryRequireInstall("dplyr");
4 REPLIES 4
Moderator v-viig
Moderator

Re: Error when saving html visual (R custom)

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

sona93 Frequent Visitor
Frequent Visitor

Re: Error when saving html visual (R custom)

Do you have any updates on the case, 

PoolR
Advisor

Re: Error when saving html visual (R custom)

Have you also included the dplyr library?

 

libraryRequireInstall("dplyr");
sona93 Frequent Visitor
Frequent Visitor

Re: Error when saving html visual (R custom)

Perfect, now it works - thanks so much!