Skip to content

tab_row_group() signals warning when used successively #675

@kinto-b

Description

@kinto-b

Annoying warning is signaled when adding two or more groupings by hand

library(dplyr)
mtcars %>% 
gt::gt() %>% 
gt::tab_row_group(group = "One", rows = which(mtcars$am == 1)) %>% 
gt::tab_row_group(group = "Zero", rows = which(mtcars$am == 0))

# Warning messages:
# 1: In min(rows_matched) : no non-missing arguments to min; returning Inf
# 2: In max(rows_matched) : no non-missing arguments to max; returning -Inf

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions