dcomtois / summarytools

R Package to Quickly and Neatly Summarize Data
504 stars 77 forks source link

"Stats/values" column's factor's are not listed above, when i use in Flexdashboard. #111

Closed lhagwasuren closed 4 years ago

lhagwasuren commented 4 years ago

Hi there, I faced problem with my dfSummary table in Flexdashboard. First pic is flexdashboard's issue, second pic is my viewer (inside Rstudio). Otherwise i want to get second pic's table in flexdashboard, Sorry about my bad english. I think you can undestand my issue from photos.

image image

lhagwasuren commented 4 years ago

Any idea?

dcomtois commented 4 years ago

The linefeeds within cells can be be activated with the following bit of css:

.st-multiline {
  white-space: pre;
}

If you can insert this css bit somewhere in the process, either by using st_css() (see vignettes for more detailed instructions), or by another way specific to Flexdashboard (which I'm not familiar with), then the issue should be resolved.

Good luck and please let us know if you succeed! :)

lhagwasuren commented 4 years ago

Thanks to responsed my issue. Flexdashboard is just html document. But simple HMTL document's table give me this result (1st pic). I think there are problem with my code. image image

lhagwasuren commented 4 years ago

Sorry about my bad question. I found my solution from older issue github. My main mistake is omitting result = 'asis' and st_css

```{r, results='asis', echo=FALSE}
st_css()```