knitr::opts_chunk$set(echo = FALSE, warning = FALSE) options(DT.warn.size = FALSE)
iss_stats <- params$iss_stats iss_stats_miss <- params$iss_stats_miss
datatable(iss_stats, class = "stripe", filter = "top", rownames = FALSE, options = list( order = list(list(3, 'asc')), scrollY = "450px", autoWidth = TRUE ), colnames = c("ProjectID", "VISPA concatenate", "Path to stats folder", "File found", "Imported", "Reason (if not imported)")) |> formatStyle(columns = "Imported", color = styleEqual( levels = c(TRUE, FALSE), values = c(found_color, not_found_color) ), fontWeight = "bold", textTransform = "uppercase")
Reasons why file import may fail:
cat("*Nothing to report*")
iss_stats_miss <- iss_stats_miss |> dplyr::mutate(dplyr::across( tidyselect::vars_select_helpers$where(is.character), as.factor)) datatable(iss_stats_miss, class = "stripe", filter = "top", rownames = FALSE, options = list( scrollY = "450px", autoWidth = TRUE ))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.