CRAN Package Check Results for Package expss

Last updated on 2025-12-20 21:49:32 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.11.7 15.80 201.58 217.38 ERROR
r-devel-linux-x86_64-debian-gcc 0.11.7 9.13 129.52 138.65 ERROR
r-devel-linux-x86_64-fedora-clang 0.11.7 27.00 305.91 332.91 ERROR
r-devel-linux-x86_64-fedora-gcc 0.11.7 26.00 309.84 335.84 ERROR
r-devel-windows-x86_64 0.11.7 18.00 184.00 202.00 OK
r-patched-linux-x86_64 0.11.7 17.41 177.08 194.49 OK
r-release-linux-x86_64 0.11.7 13.91 178.32 192.23 OK
r-release-macos-arm64 0.11.7 OK
r-release-macos-x86_64 0.11.7 10.00 211.00 221.00 OK
r-release-windows-x86_64 0.11.7 22.00 179.00 201.00 OK
r-oldrel-macos-arm64 0.11.7 OK
r-oldrel-macos-x86_64 0.11.7 10.00 213.00 223.00 OK
r-oldrel-windows-x86_64 0.11.7 24.00 227.00 251.00 OK

Check Details

Version: 0.11.7
Check: examples
Result: ERROR Running examples in ‘expss-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: if_na > ### Title: Replace values with NA and vice-versa > ### Aliases: if_na if_na<- %if_na% na_if na_if<- %na_if% mis_val mis_val<- > ### %mis_val% valid > ### Keywords: datasets > > ### ** Examples > > # simple case > a = c(NA, 2, 3, 4, NA) > if_na(a, 99) [1] 99 2 3 4 99 > > # the same result > a %if_na% 99 [1] 99 2 3 4 99 > > # with label > a = c(NA, 2, 3, 4, NA) > if_na(a, 99, label = "Hard to say") VALUES: 99, 2, 3, 4, 99 VALUE LABELS: 99 Hard to say > > # in-place replacement. The same result: > if_na(a, label = "Hard to say") = 99 > a # c(99, 2, 3, 4, 99) VALUES: 99, 2, 3, 4, 99 VALUE LABELS: 99 Hard to say > > # replacement with values from other variable > a = c(NA, 2, 3, 4, NA) > b = 1:5 > if_na(a, b) [1] 1 2 3 4 5 > > # replacement with group means > # make data.frame > set.seed(123) > group = sample(1:3, 30, replace = TRUE) > param = runif(30) > param[sample(30, 10)] = NA # place 10 NA's > df = data.frame(group, param) > > # replace NA's with group means > if_na(df$param) = window_fun(df$param, df$group, mean_col) Error in `[.data.table`(dt_table, , `:=`(res, eval(expr)), by = grouping_names) : attempt access index 2/2 in VECTOR_ELT Calls: window_fun -> window_fun.default -> [ -> [.data.table Execution halted Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc

Version: 0.11.7
Check: tests
Result: ERROR Running ‘testthat.R’ [39s/31s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > if(capabilities('long.double')){ + library(testthat) + library(expss) + options(covr = FALSE) + options(width = 1000) + data.table::setDTthreads(2) + testthat::test_check("expss") + } Loading required package: maditr To aggregate all non-grouping columns: take_all(mtcars, mean, by = am) Use 'expss_output_viewer()' to display tables in the RStudio Viewer. To return to the console output, use 'expss_output_default()'. Attaching package: 'expss' The following objects are masked from 'package:testthat': equals, not VALUES: 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24... 50 items printed out of 52 VALUE LABELS: 1 A 2 B 3 C 4 D 5 E 6 F 7 G 8 H 9 I 10 J ... 43 q 44 r 45 s 46 t 47 u 48 v 49 w 50 x 51 y 52 z Saving _problems/test_window_fun-13.R [ FAIL 1 | WARN 0 | SKIP 15 | PASS 1569 ] ══ Skipped tests (15) ══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ • empty test (15): , , , , , , , , , , , , , , ══ Failed tests ════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ ── Error ('test_window_fun.R:13:1'): (code run outside of `test_that()`) ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── Error in ``[.data.table`(dt_table, , `:=`(res, eval(expr)), by = grouping_names)`: attempt access index 2/2 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_identical(window_fun(1:3, "total", mean), ave(1:3)) at test_window_fun.R:13:1 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─expss::window_fun(1:3, "total", mean) 5. └─expss:::window_fun.default(1:3, "total", mean) 6. ├─dt_table[, `:=`(res, eval(expr)), by = grouping_names] 7. └─data.table:::`[.data.table`(...) [ FAIL 1 | WARN 0 | SKIP 15 | PASS 1569 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-debian-clang

Version: 0.11.7
Check: tests
Result: ERROR Running ‘testthat.R’ [24s/24s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > if(capabilities('long.double')){ + library(testthat) + library(expss) + options(covr = FALSE) + options(width = 1000) + data.table::setDTthreads(2) + testthat::test_check("expss") + } Loading required package: maditr To select columns from data: columns(mtcars, mpg, vs:carb) Use 'expss_output_viewer()' to display tables in the RStudio Viewer. To return to the console output, use 'expss_output_default()'. Attaching package: 'expss' The following objects are masked from 'package:testthat': equals, not VALUES: 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24... 50 items printed out of 52 VALUE LABELS: 1 A 2 B 3 C 4 D 5 E 6 F 7 G 8 H 9 I 10 J ... 43 q 44 r 45 s 46 t 47 u 48 v 49 w 50 x 51 y 52 z Saving _problems/test_window_fun-13.R [ FAIL 1 | WARN 0 | SKIP 15 | PASS 1569 ] ══ Skipped tests (15) ══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ • empty test (15): , , , , , , , , , , , , , , ══ Failed tests ════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ ── Error ('test_window_fun.R:13:1'): (code run outside of `test_that()`) ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── Error in ``[.data.table`(dt_table, , `:=`(res, eval(expr)), by = grouping_names)`: attempt access index 2/2 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_identical(window_fun(1:3, "total", mean), ave(1:3)) at test_window_fun.R:13:1 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─expss::window_fun(1:3, "total", mean) 5. └─expss:::window_fun.default(1:3, "total", mean) 6. ├─dt_table[, `:=`(res, eval(expr)), by = grouping_names] 7. └─data.table:::`[.data.table`(...) [ FAIL 1 | WARN 0 | SKIP 15 | PASS 1569 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.11.7
Check: examples
Result: ERROR Running examples in ‘expss-Ex.R’ failed The error most likely occurred in: > ### Name: if_na > ### Title: Replace values with NA and vice-versa > ### Aliases: if_na if_na<- %if_na% na_if na_if<- %na_if% mis_val mis_val<- > ### %mis_val% valid > ### Keywords: datasets > > ### ** Examples > > # simple case > a = c(NA, 2, 3, 4, NA) > if_na(a, 99) [1] 99 2 3 4 99 > > # the same result > a %if_na% 99 [1] 99 2 3 4 99 > > # with label > a = c(NA, 2, 3, 4, NA) > if_na(a, 99, label = "Hard to say") VALUES: 99, 2, 3, 4, 99 VALUE LABELS: 99 Hard to say > > # in-place replacement. The same result: > if_na(a, label = "Hard to say") = 99 > a # c(99, 2, 3, 4, 99) VALUES: 99, 2, 3, 4, 99 VALUE LABELS: 99 Hard to say > > # replacement with values from other variable > a = c(NA, 2, 3, 4, NA) > b = 1:5 > if_na(a, b) [1] 1 2 3 4 5 > > # replacement with group means > # make data.frame > set.seed(123) > group = sample(1:3, 30, replace = TRUE) > param = runif(30) > param[sample(30, 10)] = NA # place 10 NA's > df = data.frame(group, param) > > # replace NA's with group means > if_na(df$param) = window_fun(df$param, df$group, mean_col) Error in `[.data.table`(dt_table, , `:=`(res, eval(expr)), by = grouping_names) : attempt access index 2/2 in VECTOR_ELT Calls: window_fun -> window_fun.default -> [ -> [.data.table Execution halted Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc

Version: 0.11.7
Check: tests
Result: ERROR Running ‘testthat.R’ [60s/68s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > if(capabilities('long.double')){ + library(testthat) + library(expss) + options(covr = FALSE) + options(width = 1000) + data.table::setDTthreads(2) + testthat::test_check("expss") + } Loading required package: maditr To aggregate several columns with one summary: take(mtcars, mpg, hp, fun = mean, by = am) Attaching package: 'expss' The following objects are masked from 'package:testthat': equals, not VALUES: 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24... 50 items printed out of 52 VALUE LABELS: 1 A 2 B 3 C 4 D 5 E 6 F 7 G 8 H 9 I 10 J ... 43 q 44 r 45 s 46 t 47 u 48 v 49 w 50 x 51 y 52 z Saving _problems/test_window_fun-13.R [ FAIL 1 | WARN 0 | SKIP 15 | PASS 1569 ] ══ Skipped tests (15) ══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ • empty test (15): , , , , , , , , , , , , , , ══ Failed tests ════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ ── Error ('test_window_fun.R:13:1'): (code run outside of `test_that()`) ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── Error in ``[.data.table`(dt_table, , `:=`(res, eval(expr)), by = grouping_names)`: attempt access index 2/2 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_identical(window_fun(1:3, "total", mean), ave(1:3)) at test_window_fun.R:13:1 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─expss::window_fun(1:3, "total", mean) 5. └─expss:::window_fun.default(1:3, "total", mean) 6. ├─dt_table[, `:=`(res, eval(expr)), by = grouping_names] 7. └─data.table:::`[.data.table`(...) [ FAIL 1 | WARN 0 | SKIP 15 | PASS 1569 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-fedora-clang

Version: 0.11.7
Check: tests
Result: ERROR Running ‘testthat.R’ [55s/115s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > if(capabilities('long.double')){ + library(testthat) + library(expss) + options(covr = FALSE) + options(width = 1000) + data.table::setDTthreads(2) + testthat::test_check("expss") + } Loading required package: maditr To drop variable use NULL: let(mtcars, am = NULL) %>% head() Use 'expss_output_rnotebook()' to display tables inside R Notebooks. To return to the console output, use 'expss_output_default()'. Attaching package: 'expss' The following objects are masked from 'package:testthat': equals, not VALUES: 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24... 50 items printed out of 52 VALUE LABELS: 1 A 2 B 3 C 4 D 5 E 6 F 7 G 8 H 9 I 10 J ... 43 q 44 r 45 s 46 t 47 u 48 v 49 w 50 x 51 y 52 z Saving _problems/test_window_fun-13.R [ FAIL 1 | WARN 0 | SKIP 15 | PASS 1569 ] ══ Skipped tests (15) ══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ • empty test (15): , , , , , , , , , , , , , , ══ Failed tests ════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ ── Error ('test_window_fun.R:13:1'): (code run outside of `test_that()`) ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── Error in ``[.data.table`(dt_table, , `:=`(res, eval(expr)), by = grouping_names)`: attempt access index 2/2 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_identical(window_fun(1:3, "total", mean), ave(1:3)) at test_window_fun.R:13:1 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─expss::window_fun(1:3, "total", mean) 5. └─expss:::window_fun.default(1:3, "total", mean) 6. ├─dt_table[, `:=`(res, eval(expr)), by = grouping_names] 7. └─data.table:::`[.data.table`(...) [ FAIL 1 | WARN 0 | SKIP 15 | PASS 1569 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-fedora-gcc