R Under development (unstable) (2024-06-13 r86731 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview > # * https://testthat.r-lib.org/articles/special-files.html > > library(testthat) > library(crt2power) Warning messages: 1: replacing previous import 'MASS::select' by 'dplyr::select' when loading 'crt2power' 2: replacing previous import 'dplyr::group_rows' by 'kableExtra::group_rows' when loading 'crt2power' 3: replacing previous import 'pracma::gradient' by 'rootSolve::gradient' when loading 'crt2power' 4: replacing previous import 'pracma::hessian' by 'rootSolve::hessian' when loading 'crt2power' 5: replacing previous import 'dplyr::lag' by 'stats::lag' when loading 'crt2power' 6: replacing previous import 'dplyr::filter' by 'stats::filter' when loading 'crt2power' > > test_check("crt2power") Using 30 as the total number of clusters for IU test. Using 30 as the total number of clusters for IU test. Using 30 as the total number of clusters for IU test. Using 30 as the total number of clusters for IU test. Using 30 as the total number of clusters for IU test. Using 30 as the total number of clusters for IU test. [ FAIL 1 | WARN 0 | SKIP 0 | PASS 57 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-conj_test.R:85:3'): Conjunctive IU test K calculation aligns with power ── Error in `calc_K_conj_test(power = calc_pwr_conj_test(K = 15, m = 300, alpha = 0.05, beta1 = 0.1, beta2 = 0.1, varY1 = 0.23, varY2 = 0.25, rho01 = 0.025, rho02 = 0.025, rho1 = 0.01, rho2 = 0.05, r = 1), m = 300, alpha = 0.05, beta1 = 0.1, beta2 = 0.1, varY1 = 0.23, varY2 = 0.25, rho01 = 0.025, rho02 = 0.025, rho1 = 0.01, rho2 = 0.05, r = 1)$`Treatment (K)``: $ operator is invalid for atomic vectors [ FAIL 1 | WARN 0 | SKIP 0 | PASS 57 ] Error: Test failures Execution halted