The diagnose_paged_report() paged report the information for diagnosing the quality of the data.

diagnose_paged_report(.data, ...)

# S3 method for data.frame
  output_format = c("pdf", "html"),
  output_file = NULL,
  output_dir = tempdir(),
  browse = TRUE,
  title = "Data Diagnosis Report",
  subtitle = deparse(substitute(.data)),
  author = "dlookr",
  abstract_title = "Report Overview",
  abstract = NULL,
  title_color = "white",
  subtitle_color = "gold",
  thres_uniq_cat = 0.5,
  thres_uniq_num = 5,
  flag_content_zero = TRUE,
  flag_content_minus = TRUE,
  flag_content_missing = TRUE,
  cover_img = NULL,
  create_date = Sys.time(),
  logo_img = NULL,
  theme = c("orange", "blue"),
  sample_percent = 100,
  is_tbl_dbi = FALSE,
  base_family = NULL,



a data.frame or a tbl_df.


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


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 "white".


character. color of subtitle. default is "gold".


numeric. threshold to use for "Unique Values - Categorical Variables". default is 0.5.


numeric. threshold to use for "Unique Values - Numerical Variables". default is 5.


logical. whether to output "Zero Values" information. the default value is TRUE, and the information is displayed.


logical. whether to output "Minus Values" information. the default value is TRUE, and the information is displayed.


logical. whether to output "Missing Value" information. the default value is TRUE, and the information is displayed.


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 file on top right.


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


numeric. Sample percent of data for performing Diagnosis. 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.


logical. whether .data is a tbl_dbi object.


character. The name of the base font family to use for the visualization. If not specified, the font defined in dlookr is applied. (See details)


No return value. This function only generates a report.


Generate generalized data diagnostic reports automatically. You can choose to output to pdf and html files. This is useful for diagnosing a data frame with a large number of variables than data with a small number of 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

Reported from the data diagnosis is as follows.

  • Overview

    • Data Structures

    • Job Informations

    • Warnings

    • Variables

  • Missing Values

    • List of Missing Values

    • Visualization

  • Unique Values

    • Categorical Variables

    • Numerical Variables

  • Categorical Variable Diagnosis

    • Top Ranks

  • Numerical Variable Diagnosis

    • Distribution

      • Zero Values

      • Minus Values

    • Outliers

      • List of Outliers

      • Individual Outliers

The base_family is selected from "Roboto Condensed", "Liberation Sans Narrow", "NanumSquare", "Noto Sans Korean". If you want to use a different font, use it after loading the Google font with import_google_font().


# \donttest{
if (FALSE) {
# create dataset
heartfailure2 <- dlookr::heartfailure
heartfailure2[sample(seq(NROW(heartfailure2)), 20), "sodium"] <- NA
heartfailure2[sample(seq(NROW(heartfailure2)), 5), "smoking"] <- NA
heartfailure2[sample(seq(NROW(heartfailure2)), 2), "time"] <- 0
heartfailure2[sample(seq(NROW(heartfailure2)), 1), "creatinine"] <- -0.3
# create pdf file. file name is Diagnosis_Paged_Report.pdf

# create pdf file. file name is Diagn.pdf. and change cover image
cover <- file.path(system.file(package = "dlookr"), "report", "cover2.jpg")
diagnose_paged_report(heartfailure2, cover_img = cover, title_color = "gray",
  output_file = "Diagn.pdf")

# create pdf file. file name is ./Diagn.pdf and not browse
cover <- file.path(system.file(package = "dlookr"), "report", "cover3.jpg")
diagnose_paged_report(heartfailure2, output_dir = ".", cover_img = cover, 
  flag_content_missing = FALSE, output_file = "Diagn.pdf", browse = FALSE)

# create pdf file. file name is Diagnosis_Paged_Report.html
diagnose_paged_report(heartfailure2, output_format = "html")
# }