The eda_paged_report() paged report the information for EDA of the DBMS table through tbl_dbi

# S3 method for tbl_dbi
  target = NULL,
  output_format = c("pdf", "html")[1],
  output_file = NULL,
  output_dir = tempdir(),
  browse = TRUE,
  title = "EDA Report",
  subtitle = deparse(substitute(.data)),
  author = "dlookr",
  abstract_title = "Report Overview",
  abstract = NULL,
  title_color = "black",
  subtitle_color = "blue",
  cover_img = NULL,
  create_date = Sys.time(),
  logo_img = NULL,
  theme = c("orange", "blue")[1],
  sample_percent = 100,
  in_database = FALSE,
  collect_size = Inf,
  as_factor = TRUE,



a tbl_dbi.


character. target variable.


report output type. Choose either "pdf" and "html". "pdf" create pdf file by rmarkdown::render() and pagedown::chrome_print(). so, you needed Chrome web browser on computer. "html" create html file by rmarkdown::render().


name of generated file. default is NULL.


name of directory to generate report file. default is tempdir().


logical. choose whether to output the report results to the browser.


character. title of report. default is "Data Diagnosis Report".


character. subtitle of report. default is name of data.


character. author of report. default is "dlookr".


character. abstract title of report. default is "Report Overview".


character. abstract of report.


character. color of title. default is "black".


character. color of title. default is "blue".


character. name of cover image.


Date or POSIXct, character. The date on which the report is generated. The default value is the result of Sys.time().


character. name of logo image on top right.


character. name of theme for report. support "orange" and "blue". default is "orange".


numeric. Sample percent of data for performing EDA. It has a value between (0, 100]. 100 means all data, and 5 means 5% of sample data. This is useful for data with a large number of observations.


Specifies whether to perform in-database operations. If TRUE, most operations are performed in the DBMS. if FALSE, table data is taken in R and operated in-memory. Not yet supported in_database = TRUE.


a integer. The number of data samples from the DBMS to R. Applies only if in_database = FALSE.


logical. whether to convert to factor when importing a character type variable from DBMS table into R.


arguments to be passed to pagedown::chrome_print().


Generate generalized EDA report automatically. You can choose to output to pdf and html files. This feature is useful for EDA of data with many variables, rather than data with fewer variables.

Create an PDF through the Chrome DevTools Protocol. If you want to create PDF, Google Chrome or Microsoft Edge (or Chromium on Linux) must be installed prior to using this function. If not installed, you must use output_format = "html".

Reported information

The EDA process will report the following information:

  • Overview

    • Data Structures

    • Job Informations

  • Univariate Analysis

    • Descriptive Statistics

      • Numerical Variables

      • Categorical Variables

    • Normality Test

  • Bivariate Analysis

    • Compare Numerical Variables

    • Compare Categorical Variables

  • Multivariate Analysis

    • Correlation Analysis

      • Correlation Coefficient Matrix

      • Correlation Plot

  • Target based Analysis

    • Grouped Numerical Variables

    • Grouped Categorical Variables

    • Grouped Correlation


# \donttest{
if (FALSE) {

# Generate data for the example
heartfailure2 <- heartfailure
heartfailure2[sample(seq(NROW(heartfailure2)), 20), "platelets"] <- NA
heartfailure2[sample(seq(NROW(heartfailure2)), 5), "smoking"] <- NA

# connect DBMS
con_sqlite <- DBI::dbConnect(RSQLite::SQLite(), ":memory:")

# copy heartfailure2 to the DBMS with a table named TB_HEARTFAILURE
copy_to(con_sqlite, heartfailure2, name = "TB_HEARTFAILURE", overwrite = TRUE)

# reporting the diagnosis information -------------------------
# create pdf file. file name is EDA_Paged_Report.pdf
con_sqlite %>% 
  tbl("TB_HEARTFAILURE") %>% 
  eda_paged_report(target = "death_event")
# create pdf file. file name is EDA.pdf, and collect size is 250
con_sqlite %>% 
  tbl("TB_HEARTFAILURE") %>% 
  eda_paged_report(collect_size = 250, output_file = "EDA.pdf")
# Disconnect DBMS   
# }