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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
nxa03tm
Regular Visitor

Formattable R Package Not Working

Hi,

The following code runs in RStudio and creates a table without issue

(dataset is a dataframe with 10 rows and 13 columns) 

 

library(formattable)
formattable(dataset)
 
However, when I run this in the R script editor in Power BI, I get the following error message
Capture.PNG
 
Formattable is on the list of supported R packages here: https://docs.microsoft.com/en-us/power-bi/service-r-packages-support
 
I'm running R version 3.5.0 (2018-04-23) and Power BI Desktop version 2.70.5494.562 64-bit (June 2019)
 
I would like to be able to use the formatting functions in the formattable library to create a custom table visualization for my Power BI dashboard. Any help is appreciated!
 
Thanks!!
1 ACCEPTED SOLUTION
v-diye-msft
Community Support
Community Support

Hi @nxa03tm ,

 

This is know issue in R and not related to PBID directly. R does not have support of exporting these graphs to graphic devices such as svg, png and even pdf.

 

in PBI we support png graphic device.

 

to export graph to png please follow this : https://github.com/rich-iannone/DiagrammeR/issues/133 (png file name should be '001.png')

 

Best regards,
Dina Ye

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

View solution in original post

1 REPLY 1
v-diye-msft
Community Support
Community Support

Hi @nxa03tm ,

 

This is know issue in R and not related to PBID directly. R does not have support of exporting these graphs to graphic devices such as svg, png and even pdf.

 

in PBI we support png graphic device.

 

to export graph to png please follow this : https://github.com/rich-iannone/DiagrammeR/issues/133 (png file name should be '001.png')

 

Best regards,
Dina Ye

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.