'Changing background color and font in vtable::sumtable

I've created a descriptive data table with sumtable(), but it displays grey and white rows as below. I'd like it to be all white, and change the font.

enter image description here



Solution 1:[1]

By default, sumtable generates an html output with fixed characteristics. If you want to style it yourself, you have the option to pass it to kable, and set all the parameters you want via kable_styling():

library(vtable)

sumtable(mtcars, out = 'kable') %>% 
  kableExtra::kable_styling(html_font = 'Comic Sans MS')

enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Allan Cameron