* using log directory 'd:/RCompile/CRANincoming/R-devel/crt2power.Rcheck' * using R Under development (unstable) (2024-06-13 r86731 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.2.0 GNU Fortran (GCC) 13.2.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'crt2power/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'crt2power' version '1.0.0' * package encoding: UTF-8 * checking CRAN incoming feasibility ... NOTE Maintainer: 'Melody Owen ' New submission * 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 'crt2power' can be installed ... WARNING Found the following significant warnings: Warning: replacing previous import 'MASS::select' by 'dplyr::select' when loading 'crt2power' Warning: replacing previous import 'dplyr::group_rows' by 'kableExtra::group_rows' when loading 'crt2power' Warning: replacing previous import 'pracma::gradient' by 'rootSolve::gradient' when loading 'crt2power' Warning: replacing previous import 'pracma::hessian' by 'rootSolve::hessian' when loading 'crt2power' Warning: replacing previous import 'dplyr::lag' by 'stats::lag' when loading 'crt2power' Warning: replacing previous import 'dplyr::filter' by 'stats::filter' when loading 'crt2power' See 'd:/RCompile/CRANincoming/R-devel/crt2power.Rcheck/00install.out' for details. * checking installed package size ... OK * checking package directory ... OK * checking for future file timestamps ... OK * checking DESCRIPTION meta-information ... WARNING Dependence on R version '4.3.1' not with patchlevel 0 * 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 ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... 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 ... [13s] OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd line widths ... NOTE Rd file 'calc_K_comb_outcome.Rd': \examples lines wider than 100 characters: calc_K_comb_outcome(power = 0.8, m = 300, alpha = 0.05, beta1 = 0.1, beta2 = 0.1, varY1 = 0.23, varY2 = 0.25, rho01 = 0.025, rho02 = 0. ... [TRUNCATED] Rd file 'calc_K_conj_test.Rd': \examples lines wider than 100 characters: calc_K_conj_test(power = 0.8, m = 300, alpha = 0.05, beta1 = 0.1, beta2 = 0.1, varY1 = 0.23, varY2 = 0.25, rho01 = 0.025, rho02 = 0.025 ... [TRUNCATED] Rd file 'calc_K_disj_2dftest.Rd': \examples lines wider than 100 characters: calc_K_disj_2dftest(power = 0.8, m = 300, alpha = 0.05, beta1 = 0.1, beta2 = 0.1, varY1 = 0.23, varY2 = 0.25, rho01 = 0.025, rho02 = 0. ... [TRUNCATED] Rd file 'calc_K_pval_adj.Rd': \examples lines wider than 100 characters: calc_K_pval_adj(power = 0.8, m = 300, alpha = 0.05, beta1 = 0.1, beta2 = 0.1, varY1 = 0.23, varY2 = 0.25, rho01 = 0.025, rho02 = 0.025, ... [TRUNCATED] Rd file 'calc_K_single_1dftest.Rd': \examples lines wider than 100 characters: calc_K_single_1dftest(power = 0.8, m = 300, alpha = 0.05, beta1 = 0.1, beta2 = 0.1, varY1 = 0.23, varY2 = 0.25, rho01 = 0.025, rho02 = ... [TRUNCATED] Rd file 'calc_m_comb_outcome.Rd': \examples lines wider than 100 characters: calc_m_comb_outcome(power = 0.8, K = 15, alpha = 0.05, beta1 = 0.1, beta2 = 0.1, varY1 = 0.23, varY2 = 0.25, rho01 = 0.025, rho02 = 0.0 ... [TRUNCATED] Rd file 'calc_m_conj_test.Rd': \examples lines wider than 100 characters: calc_m_conj_test(power = 0.8, K = 15, alpha = 0.05, beta1 = 0.1, beta2 = 0.1, varY1 = 0.23, varY2 = 0.25, rho01 = 0.025, rho02 = 0.025, ... [TRUNCATED] Rd file 'calc_m_disj_2dftest.Rd': \examples lines wider than 100 characters: calc_m_disj_2dftest(power = 0.8, K = 15, alpha = 0.05, beta1 = 0.1, beta2 = 0.1, varY1 = 0.23, varY2 = 0.25, rho01 = 0.025, rho02 = 0.0 ... [TRUNCATED] Rd file 'calc_m_pval_adj.Rd': \examples lines wider than 100 characters: calc_m_pval_adj(power = 0.8, K = 15, alpha = 0.05, beta1 = 0.1, beta2 = 0.1, varY1 = 0.23, varY2 = 0.25, rho01 = 0.025, rho02 = 0.025, ... [TRUNCATED] Rd file 'calc_m_single_1dftest.Rd': \examples lines wider than 100 characters: calc_m_single_1dftest(power = 0.8, K = 15, alpha = 0.05, beta1 = 0.1, beta2 = 0.1, varY1 = 0.23, varY2 = 0.25, rho01 = 0.025, rho02 = 0 ... [TRUNCATED] Rd file 'calc_pwr_comb_outcome.Rd': \examples lines wider than 100 characters: calc_pwr_comb_outcome(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 ... [TRUNCATED] Rd file 'calc_pwr_conj_test.Rd': \examples lines wider than 100 characters: 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, r ... [TRUNCATED] Rd file 'calc_pwr_disj_2dftest.Rd': \examples lines wider than 100 characters: calc_pwr_disj_2dftest(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 ... [TRUNCATED] Rd file 'calc_pwr_pval_adj.Rd': \examples lines wider than 100 characters: calc_pwr_pval_adj(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, rh ... [TRUNCATED] Rd file 'calc_pwr_single_1dftest.Rd': \examples lines wider than 100 characters: calc_pwr_single_1dftest(K = 15, m = 300, alpha = 0.05, beta1 = 0.1, beta2 = 0.1, varY1 = 0.23, varY2 = 0.25, rho01 = 0.025, rho02 = 0.0 ... [TRUNCATED] Rd file 'run_crt2_design.Rd': \examples lines wider than 100 characters: run_crt2_design(output = "power", K = 15, m = 300, alpha = 0.05, beta1 = 0.1, beta2 = 0.1, varY1 = 0.23, varY2 = 0.25, rho01 = 0.025, r ... [TRUNCATED] These lines will be truncated in the PDF manual. * 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 examples ... OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... ERROR Running 'testthat.R' Running the tests in 'tests/testthat.R' failed. Complete output: > # 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 * checking PDF version of manual ... [13s] OK * checking HTML version of manual ... OK * DONE Status: 1 ERROR, 2 WARNINGs, 2 NOTEs