knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
The precis package is designed to replace base::summary()
library(precis)
precis(mtcars)
precis(ggplot2::diamonds)
precis is not currently available on CRAN, but you can install it with:
# install.packages("devtools")
devtools::install_github("hadley/precis")