* using log directory 'd:/Rcompile/CRANpkg/local/4.6/noncompliance.Rcheck' * using R Under development (unstable) (2025-12-23 r89222 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.3.0 GNU Fortran (GCC) 14.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'noncompliance/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'noncompliance' version '0.2.2' * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'noncompliance' can be installed ... OK * used C++ compiler: 'g++.exe (GCC) 14.3.0' * checking installed package size ... OK * checking package directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [1s] OK * checking whether the package can be loaded with stated dependencies ... [1s] OK * checking whether the package can be unloaded cleanly ... [1s] OK * checking whether the namespace can be loaded with stated dependencies ... [0s] OK * checking whether the namespace can be unloaded cleanly ... [1s] OK * checking loading without being on the library search path ... [1s] OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [3s] OK * checking Rd files ... [1s] OK * checking Rd metadata ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking LazyData ... INFO 'LazyData' is specified without a 'data' directory * checking line endings in C/C++/Fortran sources/headers ... OK * checking pragmas in C/C++ headers and code ... OK * checking compiled code ... OK * checking examples ... [6s] ERROR Running examples in 'noncompliance-Ex.R' failed The error most likely occurred in: > ### Name: AllColTotalsH0_CONT > ### Title: Finds all column totals for Compliers and Never Takers under the > ### sharp null for Compliers. > ### Aliases: AllColTotalsH0_CONT > > ### ** Examples > > AllColTotalsH0_CONT(158, 14, 52, 12, 23, 78) Error in `[.data.table`(psispace, , `:=`(c("CONR", "COAR"), list(n_y0 - : attempt access index 2/2 in VECTOR_ELT Calls: AllColTotalsH0_CONT -> [ -> [.data.table Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [2s] ERROR Running 'testthat.R' [2s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(noncompliance) > > test_check("noncompliance") Saving _problems/test_pvalues-7.R [ FAIL 1 | WARN 0 | SKIP 0 | PASS 20 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test_pvalues.R:5:3'): Finding the p-values ────────────────────────── Error in ``[.data.table`(psispace, , `:=`(c("CONR", "COAR"), list(n_y0 - psiNT.0, n_y1 - psiNT.1)), by = names(psispace))`: attempt access index 2/2 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test_pvalues.R:5:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─noncompliance::Get_pvalues_CONT(16, 1, 5, 1, 2, 8) 5. └─noncompliance::AllColTotalsH0_CONT(...) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) [ FAIL 1 | WARN 0 | SKIP 0 | PASS 20 ] Error: ! Test failures. Execution halted * checking PDF version of manual ... [20s] OK * checking HTML version of manual ... [3s] OK * DONE Status: 2 ERRORs