* using log directory 'd:/RCompile/CRANincoming/R-devel/seminrExtras.Rcheck' * using R Under development (unstable) (2025-09-02 r88773 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.2.0 GNU Fortran (GCC) 14.2.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'seminrExtras/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'seminrExtras' version '0.2.0' * package encoding: UTF-8 * checking CRAN incoming feasibility ... WARNING Maintainer: 'Nicholas Patrick Danks ' New submission Package was archived on CRAN Possibly misspelled words in DESCRIPTION: CVPAT (8:143) Liengaard (8:150) al (8:163) et (8:160) CRAN repository db overrides: X-CRAN-Comment: Archived on 2025-08-25 as requires archived packages 'seminr'. Strong dependencies not in mainstream repositories: seminr * 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 serialization versions ... OK * checking whether package 'seminrExtras' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking for future file timestamps ... OK * checking 'build' 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 ... 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 ... OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd line widths ... 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 installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... ERROR Running examples in 'seminrExtras-Ex.R' failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: assess_cvpat > ### Title: SEMinR function to compare CVPAT loss of two models > ### Aliases: assess_cvpat > > ### ** Examples > > # Load libraries > library(seminr) > > # Create measurement model ---- > corp_rep_mm_ext <- constructs( + composite("QUAL", multi_items("qual_", 1:8), weights = mode_B), + composite("PERF", multi_items("perf_", 1:5), weights = mode_B), + composite("CSOR", multi_items("csor_", 1:5), weights = mode_B), + composite("ATTR", multi_items("attr_", 1:3), weights = mode_B), + composite("COMP", multi_items("comp_", 1:3)), + composite("LIKE", multi_items("like_", 1:3)) + ) > > # Create structural model ---- > corp_rep_sm_ext <- relationships( + paths(from = c("QUAL", "PERF", "CSOR", "ATTR"), to = c("COMP", "LIKE")) + ) > > # Estimate the model ---- > corp_rep_pls_model_ext <- estimate_pls( + data = corp_rep_data, + measurement_model = corp_rep_mm_ext, + structural_model = corp_rep_sm_ext, + missing = mean_replacement, + missing_value = "-99") Generating the seminr model All 344 observations are valid. > > # Assess the base model ---- > assess_cvpat(seminr_model = corp_rep_pls_model_ext, + testtype = "two.sided", + nboot = 20, + seed = 123, + technique = predict_DA, + noFolds = 5, + reps = 1) Error in array(x, c(length(x), 1L), if (!is.null(names(x))) list(names(x), : 'data' must be of a vector type, was 'NULL' Calls: assess_cvpat -> as.matrix -> as.matrix.default -> array Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [22s] ERROR Running 'testthat.R' [22s] 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(seminrExtras) > test_check("seminrExtras") Generating the seminr model All 344 observations are valid. Generating the seminr model All 344 observations are valid. [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-cvpat.R:38:1'): (code run outside of `test_that()`) ──────────── Error in `array(x, c(length(x), 1L), if (!is.null(names(x))) list(names(x), NULL) else NULL)`: 'data' must be of a vector type, was 'NULL' Backtrace: ▆ 1. └─seminrExtras::assess_cvpat_compare(...) at test-cvpat.R:38:1 2. ├─base::as.matrix(pls_predict_model_one$items$PLS_out_of_sample_residuals) 3. └─base::as.matrix.default(pls_predict_model_one$items$PLS_out_of_sample_residuals) 4. └─base::array(...) [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ] Error: Test failures Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [22s] ERROR Error(s) in re-building vignettes: --- re-building 'SEMinRExtras.Rmd' using rmarkdown Quitting from SEMinRExtras.Rmd:173-188 [unnamed-chunk-3] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error in `array()`: ! 'data' must be of a vector type, was 'NULL' --- Backtrace: ▆ 1. └─seminrExtras::assess_cvpat_compare(...) 2. ├─base::as.matrix(pls_predict_model_one$items$PLS_out_of_sample_residuals) 3. └─base::as.matrix.default(pls_predict_model_one$items$PLS_out_of_sample_residuals) 4. └─base::array(...) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'SEMinRExtras.Rmd' failed with diagnostics: 'data' must be of a vector type, was 'NULL' --- failed re-building 'SEMinRExtras.Rmd' SUMMARY: processing the following file failed: 'SEMinRExtras.Rmd' Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... [17s] OK * checking HTML version of manual ... OK * DONE Status: 3 ERRORs, 1 WARNING