R Under development (unstable) (2025-08-21 r88668 ucrt) -- "Unsuffered Consequences" Copyright (C) 2025 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. > 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