Forum Discussion
Anonymous
5 years agoNot applicable
Power BI Custom R Visual - How to display a table generated in r?
I am having trouble with an R Visual I am creating in Power BI. I am acually trying to display a table, however, whenever I bring in a table I create in R using one of the supported R libraries in th...
cavamic
5 years agoRegular Visitor
Hello - I was having a similar problem rending htmlTable but seemingly solved it .
When creating an htmlTable, use its htmlTableWidget() function to create an htmlwidget instead of the basic htmlTable() which creates a character. I then passed this widget into save Widget from htmlwidgets package.
table <- htmlwidget(mtcars)
saveWidget(table, 'out.html')