* using log directory 'd:/RCompile/CRANincoming/R-devel/MplusAutomation.Rcheck' * using R Under development (unstable) (2025-08-21 r88668 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 'MplusAutomation/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'MplusAutomation' version '1.2' * package encoding: UTF-8 * checking CRAN incoming feasibility ... [10s] NOTE Maintainer: 'Michael Hallquist ' Found the following (possibly) invalid URLs: URL: http://www.pcre.org/pcre.txt (moved to https://www.pcre.org/pcre.txt) From: man/extractModIndices.Rd man/extractModelParameters.Rd man/extractModelSummaries.Rd man/readModels.Rd man/runModels.Rd man/submitModels.Rd Status: 301 Message: Moved Permanently For content that is 'Moved Permanently', please change http to https, add trailing slashes, or replace the old by the new URL. * 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 'MplusAutomation' 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 whether startup messages can be suppressed ... 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 ... [25s] NOTE Found the following possibly unsafe calls: File 'MplusAutomation/R/mplusModel.R': unlockBinding(ff, self) unlockBinding(ff, self) * 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 contents of 'data' directory ... OK * checking data for non-ASCII characters ... OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [13s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... ERROR Running 'testthat.R' Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(MplusAutomation) Version: 1.2 We work hard to write this free software. Please help us get credit by citing: Hallquist, M. N. & Wiley, J. F. (2018). MplusAutomation: An R Package for Facilitating Large-Scale Latent Variable Analyses in Mplus. Structural Equation Modeling, 25, 621-638. doi: 10.1080/10705511.2017.1402334. -- see citation("MplusAutomation"). > > test_check("MplusAutomation") ============== Mplus model comparison ---------------------- ------ Model 1: D:/RCompile/CRANincoming/R-devel/lib/MplusAutomation/extdata/ex3.7.out Model 2: D:/RCompile/CRANincoming/R-devel/lib/MplusAutomation/extdata/ex6.4.out ------ Model Summary Comparison ------------------------ m1 Title this is an example of a Poisson regression for a count dependent variable with two covariates Observations 500 Estimator MLR Parameters 3 LL -966.884 AIC 1939.768 BIC 1952.412 m2 Title this is an example of a CFA with censored and count factor indicators Observations 500 Estimator MLR Parameters 16 LL -4424.258 AIC 8880.517 BIC 8947.95 MLR Chi-Square Difference Test for Nested Models Based on Loglikelihood ----------------------------------------------------------------------- Difference Test Scaling Correction: 0.9693615 Chi-square difference: -7133.301 Diff degrees of freedom: 13 P-value: 1 Note: The chi-square difference test assumes that these models are nested. It is up to you to verify this assumption. MLR Chi-Square Difference test for nested models -------------------------------------------- Difference Test Scaling Correction: Chi-square difference: Diff degrees of freedom: P-value: Note: The chi-square difference test assumes that these models are nested. It is up to you to verify this assumption. ========= Model parameter comparison -------------------------- Parameters present in both models ========= Approximately equal in both models (param. est. diff <= 1e-04) ---------------------------------------------- None Parameter estimates that differ between models (param. est. diff > 1e-04) ---------------------------------------------- None P-values that differ between models (p-value diff > 1e-04) ----------------------------------- None Parameters unique to model 1: 3 ----------------------------- paramHeader param m1_est m1_se m1_est_se m1_pval U1.ON X1 0.533 0.027 19.795 0 U1.ON X3 0.249 0.026 9.780 0 Intercepts U1 1.026 0.030 34.033 0 Parameters unique to model 2: 18 ----------------------------- paramHeader param m2_est m2_se m2_est_se m2_pval F1.BY Y2 1.000 0.037 27.004 0.000 F1.BY Y3 0.986 0.038 25.845 0.000 F2.BY U5 0.998 0.047 21.136 0.000 F2.BY U6 1.048 0.062 16.780 0.000 F2.WITH F1 0.057 0.041 1.384 0.166 Intercepts U4 0.584 0.054 10.829 0.000 Intercepts U5 0.588 0.055 10.726 0.000 Intercepts U6 0.575 0.056 10.263 0.000 Intercepts Y1 8.027 0.044 183.807 0.000 Intercepts Y2 8.046 0.043 185.688 0.000 Intercepts Y3 7.993 0.044 183.449 0.000 Variances F1 0.761 0.054 14.073 0.000 Variances F2 0.733 0.081 9.057 0.000 Residual.Variances Y1 0.192 0.019 10.350 0.000 Residual.Variances Y2 0.178 0.019 9.506 0.000 Residual.Variances Y3 0.209 0.020 10.476 0.000 2 filtered from output (fixed and/or n.s.) F1.BY.Y1, F2.BY.U4 ============== ----- Factor: Species Conversion: level number setosa 1 versicolor 2 virginica 3 ----- ----- Factor: Species Conversion: level number setosa 1 versicolor 2 virginica 3 ----- [ FAIL 4 | WARN 0 | SKIP 1 | PASS 137 ] ══ Skipped tests (1) ═══════════════════════════════════════════════════════════ • On CRAN (1): 'test-issue158_createmixtures.R:12:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-mplusModel.R:13:3'): mplusModel R6 object can be initialized with syntax and data ── Error in `MplusAutomation::detectMplus()`: Mplus and Mpdemo8 are either not installed or could not be found Try installing Mplus or Mplus Demo. If Mplus or Mplus Demo are already installed, make sure one can be found on your PATH. The following may help Windows 10: (1) In Search, search for and then select: System (Control Panel) (2) Click the Advanced system settings link. (3) Click Environment Variables ... (4) In the Edit System Variable (or New System Variable ) window, (5) specify the value of the PATH environment variable... (6) Close and reopen R and run: mplusAvailable(silent=FALSE) Backtrace: ▆ 1. ├─MplusAutomation::mplusModel(...) at test-mplusModel.R:13:3 2. │ └─mplusModel_r6$new(syntax, data, inp_file, read) 3. │ └─MplusAutomation (local) initialize(...) 4. └─MplusAutomation (local) ``(base::quote(NULL)) 5. └─MplusAutomation::detectMplus() ── Error ('test-mplusModel.R:33:3'): mplusModel writes input and data files ──── Error in `MplusAutomation::detectMplus()`: Mplus and Mpdemo8 are either not installed or could not be found Try installing Mplus or Mplus Demo. If Mplus or Mplus Demo are already installed, make sure one can be found on your PATH. The following may help Windows 10: (1) In Search, search for and then select: System (Control Panel) (2) Click the Advanced system settings link. (3) Click Environment Variables ... (4) In the Edit System Variable (or New System Variable ) window, (5) specify the value of the PATH environment variable... (6) Close and reopen R and run: mplusAvailable(silent=FALSE) Backtrace: ▆ 1. ├─MplusAutomation::mplusModel(...) at test-mplusModel.R:33:3 2. │ └─mplusModel_r6$new(syntax, data, inp_file, read) 3. │ └─MplusAutomation (local) initialize(...) 4. └─MplusAutomation (local) ``(base::quote(NULL)) 5. └─MplusAutomation::detectMplus() ── Error ('test-mplusModel.R:45:3'): mplusModel reads existing output ────────── Error in `MplusAutomation::detectMplus()`: Mplus and Mpdemo8 are either not installed or could not be found Try installing Mplus or Mplus Demo. If Mplus or Mplus Demo are already installed, make sure one can be found on your PATH. The following may help Windows 10: (1) In Search, search for and then select: System (Control Panel) (2) Click the Advanced system settings link. (3) Click Environment Variables ... (4) In the Edit System Variable (or New System Variable ) window, (5) specify the value of the PATH environment variable... (6) Close and reopen R and run: mplusAvailable(silent=FALSE) Backtrace: ▆ 1. ├─MplusAutomation::mplusModel(...) at test-mplusModel.R:45:3 2. │ └─mplusModel_r6$new(syntax, data, inp_file, read) 3. │ └─MplusAutomation (local) initialize(...) 4. └─MplusAutomation (local) ``(base::quote(NULL)) 5. └─MplusAutomation::detectMplus() ── Error ('test-submitModels.R:5:1'): (code run outside of `test_that()`) ────── Error in `detectMplus()`: Mplus and Mpdemo8 are either not installed or could not be found Try installing Mplus or Mplus Demo. If Mplus or Mplus Demo are already installed, make sure one can be found on your PATH. The following may help Windows 10: (1) In Search, search for and then select: System (Control Panel) (2) Click the Advanced system settings link. (3) Click Environment Variables ... (4) In the Edit System Variable (or New System Variable ) window, (5) specify the value of the PATH environment variable... (6) Close and reopen R and run: mplusAvailable(silent=FALSE) Backtrace: ▆ 1. └─MplusAutomation::submitModels(...) at test-submitModels.R:5:1 2. └─MplusAutomation::detectMplus() [ FAIL 4 | WARN 0 | SKIP 1 | PASS 137 ] Error: Test failures Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... OK * checking PDF version of manual ... [20s] OK * checking HTML version of manual ... [20s] OK * DONE Status: 1 ERROR, 2 NOTEs