Last updated on 2024-10-31 10:50:12 CET.
Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
---|---|---|---|---|---|---|
r-devel-linux-x86_64-debian-clang | 0.8.2 | 24.35 | 206.58 | 230.93 | OK | |
r-devel-linux-x86_64-debian-gcc | 0.8.2 | 16.56 | 144.10 | 160.66 | OK | |
r-devel-linux-x86_64-fedora-clang | 0.8.2 | 412.09 | OK | |||
r-devel-linux-x86_64-fedora-gcc | 0.8.2 | 224.04 | ERROR | |||
r-devel-windows-x86_64 | 0.8.2 | 31.00 | 217.00 | 248.00 | OK | |
r-patched-linux-x86_64 | 0.8.2 | 24.33 | 200.66 | 224.99 | OK | |
r-release-linux-x86_64 | 0.8.2 | 23.85 | 200.03 | 223.88 | OK | |
r-release-macos-arm64 | 0.8.2 | 104.00 | OK | |||
r-release-macos-x86_64 | 0.8.2 | 339.00 | OK | |||
r-release-windows-x86_64 | 0.8.2 | 37.00 | 214.00 | 251.00 | OK | |
r-oldrel-macos-arm64 | 0.8.2 | 98.00 | OK | |||
r-oldrel-macos-x86_64 | 0.8.2 | 214.00 | OK | |||
r-oldrel-windows-x86_64 | 0.8.2 | 33.00 | 278.00 | 311.00 | OK |
Version: 0.8.2
Check: tests
Result: ERROR
Running ‘testthat.R’ [22s/155s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(timeplyr)
> Sys.unsetenv("R_TESTS")
> # Sys.setenv("OMP_THREAD_LIMIT" = 2)
> # data.table::setDTthreads(threads = 1L)
> # collapse::set_collapse(nthreads = 1L)
>
> reset_timeplyr_options()
> test_check("timeplyr", reporter = c("check", "location"))
Start test: Expect error
'test-age_years.R:7:3' [success]
'test-age_years.R:8:3' [success]
'test-age_years.R:9:3' [success]
'test-age_years.R:10:3' [success]
'test-age_years.R:11:3' [success]
End test: Expect error
Start test: Expect zero length vector
'test-age_years.R:19:3' [success]
End test: Expect zero length vector
Start test: Expect NA
'test-age_years.R:24:3' [success]
'test-age_years.R:26:3' [success]
End test: Expect NA
Start test: Leap year
'test-age_years.R:36:3' [success]
'test-age_years.R:37:3' [success]
End test: Leap year
Start test: bincode
'test-bin.R:14:3' [success]
'test-bin.R:18:3' [success]
'test-bin.R:22:3' [success]
'test-bin.R:26:3' [success]
'test-bin.R:30:3' [success]
'test-bin.R:37:3' [success]
'test-bin.R:41:3' [success]
'test-bin.R:45:3' [success]
'test-bin.R:49:3' [success]
'test-bin.R:53:3' [success]
'test-bin.R:63:3' [success]
'test-bin.R:67:3' [success]
'test-bin.R:71:3' [success]
'test-bin.R:75:3' [success]
'test-bin.R:79:3' [success]
'test-bin.R:87:3' [success]
'test-bin.R:91:3' [success]
'test-bin.R:95:3' [success]
'test-bin.R:103:3' [success]
'test-bin.R:107:3' [success]
'test-bin.R:111:3' [success]
'test-bin.R:115:3' [success]
'test-bin.R:119:3' [success]
'test-bin.R:124:3' [success]
'test-bin.R:128:3' [success]
'test-bin.R:132:3' [success]
'test-bin.R:136:3' [success]
'test-bin.R:140:3' [success]
'test-bin.R:148:3' [success]
'test-bin.R:152:3' [success]
'test-bin.R:156:3' [success]
'test-bin.R:160:3' [success]
'test-bin.R:164:3' [success]
End test: bincode
Start test: calendar
'test-calendar.R:15:3' [success]
'test-calendar.R:18:3' [success]
End test: calendar
Start test: Test cross-join
'test-crossed_join.R:11:3' [success]
'test-crossed_join.R:19:3' [success]
'test-crossed_join.R:28:3' [success]
'test-crossed_join.R:37:3' [success]
'test-crossed_join.R:44:3' [success]
'test-crossed_join.R:52:3' [success]
End test: Test cross-join
Start test: Test desc/asc
'test-desc.R:9:3' [success]
End test: Test desc/asc
Start test: Compare to dplyr
'test-df_reconstruct.R:14:3' [success]
'test-df_reconstruct.R:16:3' [success]
'test-df_reconstruct.R:18:3' [success]
'test-df_reconstruct.R:20:3' [success]
'test-df_reconstruct.R:22:3' [success]
'test-df_reconstruct.R:28:3' [success]
'test-df_reconstruct.R:30:3' [success]
'test-df_reconstruct.R:32:3' [success]
'test-df_reconstruct.R:34:3' [success]
'test-df_reconstruct.R:36:3' [success]
'test-df_reconstruct.R:38:3' [success]
'test-df_reconstruct.R:40:3' [success]
'test-df_reconstruct.R:42:3' [success]
'test-df_reconstruct.R:44:3' [success]
'test-df_reconstruct.R:50:3' [success]
'test-df_reconstruct.R:52:3' [success]
End test: Compare to dplyr
Start test: duplicate_rows
'test-duplicate_rows.R:19:3' [success]
'test-duplicate_rows.R:20:3' [success]
'test-duplicate_rows.R:22:3' [success]
'test-duplicate_rows.R:30:3' [success]
'test-duplicate_rows.R:31:3' [success]
'test-duplicate_rows.R:34:3' [success]
'test-duplicate_rows.R:37:3' [success]
'test-duplicate_rows.R:41:3' [success]
'test-duplicate_rows.R:45:3' [success]
'test-duplicate_rows.R:49:3' [success]
'test-duplicate_rows.R:56:3' [success]
End test: duplicate_rows
Start test: edf
'test-edf.R:9:1' [success]
'test-edf.R:10:1' [success]
'test-edf.R:18:1' [success]
'test-edf.R:26:1' [success]
'test-edf.R:35:1' [success]
'test-edf.R:40:1' [success]
'test-edf.R:41:1' [success]
'test-edf.R:48:1' [success]
'test-edf.R:56:1' [success]
'test-edf.R:64:1' [success]
'test-edf.R:67:1' [success]
'test-edf.R:69:1' [success]
'test-edf.R:72:1' [success]
End test: edf
Start test: farrange
'test-farrange.R:7:3' [success]
'test-farrange.R:29:3' [success]
'test-farrange.R:30:3' [success]
'test-farrange.R:31:3' [success]
End test: farrange
Start test: Compare to dplyr
'test-fcount.R:11:3' [success]
'test-fcount.R:19:3' [success]
'test-fcount.R:21:3' [success]
'test-fcount.R:27:3' [success]
'test-fcount.R:36:3' [success]
'test-fcount.R:44:3' [success]
'test-fcount.R:52:3' [success]
'test-fcount.R:59:3' [success]
'test-fcount.R:66:3' [success]
'test-fcount.R:72:3' [success]
'test-fcount.R:74:3' [success]
'test-fcount.R:76:3' [success]
*** caught segfault ***
address 0x1, cause 'memory not mapped'
Traceback:
1: cpp_sorted_group_starts(as.integer(group_sizes), init_loc)
2: calc_sorted_group_starts(GRP_sizes)
3: GRP_starts(out)
4: GRP3(safe_ungroup(data), sort = order, return.order = return.order, return.groups = return.groups, call = FALSE)
5: df_to_GRP(out, .cols = all_vars, return.order = FALSE, order = order, return.groups = TRUE)
6: fcount(., Species)
7: iris %>% dplyr::slice(0) %>% fcount(Species)
8: eval_bare(expr, quo_get_env(quo))
9: quasi_label(enquo(expected), expected.label, arg = "expected")
10: testthat::expect_equal(iris %>% dplyr::slice(0) %>% dplyr::count(Species), iris %>% dplyr::slice(0) %>% fcount(Species))
11: eval(code, test_env)
12: eval(code, test_env)
13: withCallingHandlers({ eval(code, test_env) if (!handled && !is.null(test)) { skip_empty() }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error)
14: doTryCatch(return(expr), name, parentenv, handler)
15: tryCatchOne(expr, names, parentenv, handlers[[1L]])
16: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
17: doTryCatch(return(expr), name, parentenv, handler)
18: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]), names[nh], parentenv, handlers[[nh]])
19: tryCatchList(expr, classes, parentenv, handlers)
20: tryCatch(withCallingHandlers({ eval(code, test_env) if (!handled && !is.null(test)) { skip_empty() }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error), error = handle_fatal, skip = function(e) { })
21: test_code(desc, code, env = parent.frame(), default_reporter = local_interactive_reporter())
22: testthat::test_that("Compare to dplyr", { set.seed(42) weights <- sample(1:150) iris[["weight"]] <- weights flights <- nycflights13::flights testthat::expect_equal(iris %>% dplyr::mutate(interval = lubridate::interval(lubridate::today(), lubridate::today())) %>% fcount(), iris %>% dplyr::mutate(interval = lubridate::interval(lubridate::today(), lubridate::today())) %>% dplyr::count()) testthat::expect_equal(iris %>% dplyr::count(), iris %>% fcount()) testthat::expect_identical(iris %>% data.table::as.data.table() %>% fcount(), data.table::data.table(n = 150L)) testthat::expect_identical(iris %>% data.table::as.data.table() %>% dplyr::slice(0L) %>% fcount(), data.table::data.table(n = 0L)) testthat::expect_equal(iris %>% dplyr::slice(2, 128, 125) %>% dplyr::group_by(Species, .drop = FALSE) %>% fcount(), iris %>% dplyr::slice(2, 128, 125) %>% dplyr::group_by(Species, .drop = FALSE) %>% dplyr::count()) testthat::expect_equal(iris %>% dplyr::slice(2, 128, 125) %>% dplyr::group_by(Species, .drop = TRUE) %>% fcount(), iris %>% dplyr::slice(2, 128, 125) %>% dplyr::group_by(Species, .drop = TRUE) %>% dplyr::count()) testthat::expect_equal(iris %>% dplyr::group_by(Species) %>% dplyr::count(across(all_of("Species"))), iris %>% dplyr::group_by(Species) %>% fcount()) testthat::expect_equal(iris %>% dplyr::group_by(Species) %>% dplyr::count(across(all_of(c("Species", "Sepal.Length")))), iris %>% dplyr::group_by(Species) %>% fcount(across(all_of(c("Sepal.Length"))))) testthat::expect_equal(iris %>% dplyr::group_by(Species) %>% dplyr::count(Species), iris %>% dplyr::group_by(Species) %>% fcount(Species)) testthat::expect_equal(iris %>% dplyr::count(NULL), iris %>% fcount(NULL)) testthat::expect_equal(iris %>% dplyr::slice(0) %>% dplyr::count(), iris %>% dplyr::slice(0) %>% fcount()) testthat::expect_equal(iris %>% dplyr::group_by(Species) %>% dplyr::slice(0) %>% dplyr::count(), iris %>% dplyr::group_by(Species) %>% dplyr::slice(0) %>% fcount()) testthat::expect_equal(iris %>% dplyr::slice(0) %>% dplyr::count(Species), iris %>% dplyr::slice(0) %>% fcount(Species)) testthat::expect_equal(iris %>% dplyr::group_by(Species) %>% dplyr::slice(0) %>% dplyr::count(Species), iris %>% dplyr::group_by(Species) %>% dplyr::slice(0) %>% fcount(Species)) testthat::expect_equal(iris %>% dplyr::count(NA), iris %>% fcount(NA)) testthat::expect_equal(iris %>% dplyr::count(across(dplyr::everything())), iris %>% fcount(across(dplyr::everything()))) testthat::expect_equal(iris %>% dplyr::count(across(dplyr::everything()), wt = weight), iris %>% fcount(across(dplyr::everything()), wt = weight) %>% dplyr::mutate(n = as.integer(n))) testthat::expect_equal(iris %>% dplyr::count(), iris %>% fcount()) testthat::expect_equal(iris %>% dplyr::count(name = ".count"), iris %>% fcount(name = ".count")) testthat::expect_equal(iris %>% dplyr::group_by(Species) %>% dplyr::count(Sepal.Length) %>% dplyr::count(n, name = "n"), iris %>% dplyr::group_by(Species) %>% fcount(Sepal.Length) %>% fcount(n, name = "n")) testthat::expect_equal(iris %>% dplyr::group_by(Species) %>% dplyr::count(), iris %>% dplyr::group_by(Species) %>% fcount()) testthat::expect_equal(iris %>% dplyr::group_by(across(everything())) %>% dplyr::count(), iris %>% dplyr::group_by(across(everything())) %>% fcount()) testthat::expect_equal(iris %>% dplyr::group_by(across(everything())) %>% dplyr::count(Species), iris %>% dplyr::group_by(across(everything())) %>% fcount(Species)) testthat::expect_equal(iris %>% dplyr::group_by(Species) %>% dplyr::count(Species), iris %>% dplyr::group_by(Species) %>% fcount(Species)) testthat::expect_equal(iris %>% dplyr::group_by(Species) %>% dplyr::count(across(all_of(c("Sepal.Length")))), iris %>% dplyr::group_by(Species) %>% fcount(across(all_of(c("Sepal.Length"))))) testthat::expect_equal(iris %>% dplyr::group_by(Species) %>% dplyr::count(across(dplyr::any_of(c("Species", "Sepal.Length")))), iris %>% dplyr::group_by(Species) %>% fcount(across(dplyr::any_of(c("Species", "Sepal.Length"))))) testthat::expect_equal(iris %>% dplyr::count(as.character(Species)), iris %>% fcount(as.character(Species))) testthat::expect_equal(flights %>% dplyr::count(tailnum, origin, dest), flights %>% fcount(tailnum, origin, dest)) testthat::expect_equal(flights %>% dplyr::count(tailnum, origin, dest, sort = TRUE), flights %>% fcount(tailnum, origin, dest, sort = TRUE)) res1 <- flights %>% fcount(origin, dest) set.seed(812123123) wt1 <- rep_len(3L, nrow(res1)) wt2 <- sample2(1:10, size = nrow(res1), replace = TRUE) res1 <- res1 %>% dplyr::mutate(wt2) testthat::expect_equal(res1 %>% dplyr::count(origin, dest, wt = wt2), res1 %>% fcount(origin, dest, wt = wt2)) testthat::expect_equal(res1 %>% dplyr::mutate(wt1) %>% dplyr::count(origin, dest, wt = wt1), res1 %>% fcount(origin, dest, wt = wt1)) testthat::expect_equal(res1 %>% dplyr::count(origin, dest, n, wt = wt2), res1 %>% fcount(origin, dest, n, wt = wt2)) testthat::expect_equal(res1 %>% dplyr::count(origin, dest, wt = n), res1 %>% fcount(origin, dest, wt = n)) testthat::expect_equal(iris %>% dplyr::group_by(Species) %>% dplyr::count(Species = Sepal.Length), iris %>% dplyr::group_by(Species) %>% fcount(Species = Sepal.Length))})
23: eval(code, test_env)
24: eval(code, test_env)
25: withCallingHandlers({ eval(code, test_env) if (!handled && !is.null(test)) { skip_empty() }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error)
26: doTryCatch(return(expr), name, parentenv, handler)
27: tryCatchOne(expr, names, parentenv, handlers[[1L]])
28: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
29: doTryCatch(return(expr), name, parentenv, handler)
30: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]), names[nh], parentenv, handlers[[nh]])
31: tryCatchList(expr, classes, parentenv, handlers)
32: tryCatch(withCallingHandlers({ eval(code, test_env) if (!handled && !is.null(test)) { skip_empty() }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error), error = handle_fatal, skip = function(e) { })
33: test_code(test = NULL, code = exprs, env = env, default_reporter = StopReporter$new())
34: source_file(path, env = env(env), desc = desc, error_call = error_call)
35: FUN(X[[i]], ...)
36: lapply(test_paths, test_one_file, env = env, desc = desc, error_call = error_call)
37: doTryCatch(return(expr), name, parentenv, handler)
38: tryCatchOne(expr, names, parentenv, handlers[[1L]])
39: tryCatchList(expr, classes, parentenv, handlers)
40: tryCatch(code, testthat_abort_reporter = function(cnd) { cat(conditionMessage(cnd), "\n") NULL})
41: with_reporter(reporters$multi, lapply(test_paths, test_one_file, env = env, desc = desc, error_call = error_call))
42: test_files_serial(test_dir = test_dir, test_package = test_package, test_paths = test_paths, load_helpers = load_helpers, reporter = reporter, env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, desc = desc, load_package = load_package, error_call = error_call)
43: test_files(test_dir = path, test_paths = test_paths, test_package = package, reporter = reporter, load_helpers = load_helpers, env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, load_package = load_package, parallel = parallel)
44: test_dir("testthat", package = package, reporter = reporter, ..., load_package = "installed")
45: test_check("timeplyr", reporter = c("check", "location"))
An irrecoverable exception occurred. R is aborting now ...
Flavor: r-devel-linux-x86_64-fedora-gcc