diff --git a/R/core_commons.R b/R/core_commons.R index 136f5acb029f223f05655a73f578c51d732206a9..7c971e6d33db76d6f695fd154af748aac968f64a 100644 --- a/R/core_commons.R +++ b/R/core_commons.R @@ -582,6 +582,7 @@ all_unique = function(elements) length(unique(elements)) == length(elements) ### table rendering table_browser <- function(df, caption=deparse(substitute(df)), ...){ + install_package("data.table") datatable(df, filter = "bottom", extensions = 'Buttons', options = list(dom = 'Bfrtip', buttons = c('copy', 'csv', 'excel')), caption = caption, ...) }