# Set number of data.table threads to 1 data.table::setDTthreads(threads = 2L) # Set number of collapse threads to 1 collapse::set_collapse(nthreads = 1L) testthat::test_that("groups", { testthat::expect_equal(iris %>% dplyr::group_by(Species) %>% dplyr::group_by(max(Sepal.Length), .add = TRUE), iris %>% fgroup_by(Species) %>% fgroup_by(max(Sepal.Length), .add = TRUE)) })