Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Package: DT2
Type: Package
Title: 'DataTables' 2.x for R
Version: 0.1.2
Date: 2026-06-13
Date: 2026-06-14
Authors@R: c(
person("Andre", "Leite", email = "leite@castlab.org", role = c("aut", "cre")),
person("Marcos", "Wasilew", email = "marcos.wasilew@gmail.com", role = "aut"),
Expand Down
4 changes: 4 additions & 0 deletions R/dt2.R
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,10 @@
#' @examples
#' # Create and reuse
#' my_theme <- dt2_theme("clean", compact = TRUE)
#' \donttest{
#' dt2(iris, theme = my_theme)
#' dt2(mtcars, theme = my_theme)
#' }
#'
#' # Custom button style
#' dt2_theme("default", button_class = "btn btn-sm btn-primary")
Expand Down Expand Up @@ -161,6 +163,7 @@ print.dt2_theme <- function(x, ...) {
#' # Just works — beautiful defaults
#' dt2(iris)
#'
#' \donttest{
#' # Override style inline
#' dt2(iris, striped = FALSE)
#' dt2(iris, font_scale = 0.85, compact = FALSE)
Expand Down Expand Up @@ -204,6 +207,7 @@ print.dt2_theme <- function(x, ...) {
#' buttons = list("copy", "csv", "excel"),
#' layout = list(topEnd = "buttons")
#' ))
#' }
dt2 <- function(data,
# ---- styling ----
theme = "default",
Expand Down
8 changes: 8 additions & 0 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## Resubmission

This is a resubmission of 0.1.2. The previous submission was flagged by the
incoming pre-test with one NOTE on r-devel-windows: the `dt2()` examples ran
in > 10s elapsed. I have wrapped all but one minimal `dt2()` example in
`\donttest{}` (in `dt2()` and `dt2_theme()`), so the timed example run is now
well under the threshold. No code was changed.

## Update

This is a minor update (0.1.2) of a package already on CRAN. It fixes two
Expand Down
2 changes: 2 additions & 0 deletions man/dt2.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions man/dt2_theme.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading