Closed iago-pssjd closed 5 years ago
I found the cause and updated the master branch. Could you pls try after re-installing with:
devtools::install_github("dcomtois/summarytools")
For using st_css()
, it must be in an echo=FALSE
chunk. So this should produce adequate results:
---
title: "Untitled"
output: html_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(results='asis')
suppressPackageStartupMessages(library(summarytools))
st_css()
st_options(plain.ascii = FALSE,
dfSummary.varnumbers = FALSE,
dfSummary.valid.col = FALSE,
dfSummary.style = "grid")
label(iris$Sepal.Length) <- "Some label"
print(dfSummary(iris, headings = FALSE, silent = TRUE), method = 'render')
Thanks! I tested that code and also my original one and they work.
For version 0.9.1 and later of
summarytools
and the Rmarkdown code