Closed bjornerstedt closed 1 year ago
Thx for reporting this... unfortunately I haven't had time to look into most issues for a while, hopefully some other developers can help out at some point.
@bjornerstedt @dcomtois
This happens in R markdown documents because the output of descr(iris, stats = "common", transpose = TRUE)
has class
"summarytools" "data.frame"
, and while not loading huxtable
, knitr
prints this object through knitr:::knit_print.default
(there is no knit_print
method for any of the 2 classes of the descr
output), when huxtable
is loaded, the output is printed through the S3 method huxtable:::knit_print.data.frame
.
Then, I do not think this is actually a summarytools
issue.
Thanks @iago-pssjd , I think you've got this figured out... I'll add a "known issues" section in the docs and mention this,
The following example Rmarkdown is intended to show a rendering problem with transposed stats when both huxtable and summarytools packages are loaded.
The following chunk displays rownames (variable names)
Loading huxtable displays as table without row headings. The same error occurs if huxtable is loaded before summarytools
Rendering with kable works
I am using summarytools 1.0.0 and pander version 0.6.5. Huxtable is version 5.4.0