R Under development (unstable) (2025-09-23 r88869 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. > # 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(wsMed) > test_check("wsMed") Attaching package: 'mice' The following object is masked from 'package:stats': filter The following objects are masked from 'package:base': cbind, rbind This is lavaan 0.6-20 lavaan is FREE software! Please report any bugs. Class: mids Number of multiple imputations: 1 Imputation methods: C1 C2 A1 B1 D1 D2 C3 W_cont "" "pmm" "pmm" "" "" "" "" "" PredictorMatrix: C1 C2 A1 B1 D1 D2 C3 W_cont C1 0 1 1 1 1 1 1 1 C2 1 0 1 1 1 1 1 1 A1 1 1 0 1 1 1 1 1 B1 1 1 1 0 1 1 1 1 D1 1 1 1 1 0 1 1 1 D2 1 1 1 1 1 0 1 1 Class: mids Number of multiple imputations: 1 Imputation methods: C1 C2 A1 B1 D1 D2 C3 W_cont "" "pmm" "pmm" "" "" "" "" "" PredictorMatrix: C1 C2 A1 B1 D1 D2 C3 W_cont C1 0 1 1 1 1 1 1 1 C2 1 0 1 1 1 1 1 1 A1 1 1 0 1 1 1 1 1 B1 1 1 1 0 1 1 1 1 D1 1 1 1 1 0 1 1 1 D2 1 1 1 1 1 0 1 1 Class: mids Number of multiple imputations: 1 Imputation methods: C1 C2 A1 B1 D1 D2 C3 W_cont "" "pmm" "pmm" "" "" "" "" "" PredictorMatrix: C1 C2 A1 B1 D1 D2 C3 W_cont C1 0 1 1 1 1 1 1 1 C2 1 0 1 1 1 1 1 1 A1 1 1 0 1 1 1 1 1 B1 1 1 1 0 1 1 1 1 D1 1 1 1 1 0 1 1 1 D2 1 1 1 1 1 0 1 1 Class: mids Number of multiple imputations: 1 Imputation methods: C1 C2 A1 B1 D1 D2 C3 W_cont "" "pmm" "pmm" "" "" "" "" "" PredictorMatrix: C1 C2 A1 B1 D1 D2 C3 W_cont C1 0 1 1 1 1 1 1 1 C2 1 0 1 1 1 1 1 1 A1 1 1 0 1 1 1 1 1 B1 1 1 1 0 1 1 1 1 D1 1 1 1 1 0 1 1 1 D2 1 1 1 1 1 0 1 1 Class: mids Number of multiple imputations: 1 Imputation methods: C1 C2 A1 B1 D1 D2 C3 W_bin "" "pmm" "pmm" "" "" "" "" "" PredictorMatrix: C1 C2 A1 B1 D1 D2 C3 W_bin C1 0 1 1 1 1 1 1 1 C2 1 0 1 1 1 1 1 1 A1 1 1 0 1 1 1 1 1 B1 1 1 1 0 1 1 1 1 D1 1 1 1 1 0 1 1 1 D2 1 1 1 1 1 0 1 1 Class: mids Number of multiple imputations: 1 Imputation methods: C1 C2 A1 B1 D1 D2 C3 W_fac3 "" "pmm" "pmm" "" "" "" "" "polyreg" PredictorMatrix: C1 C2 A1 B1 D1 D2 C3 W_fac3 C1 0 1 1 1 1 1 1 1 C2 1 0 1 1 1 1 1 1 A1 1 1 0 1 1 1 1 1 B1 1 1 1 0 1 1 1 1 D1 1 1 1 1 0 1 1 1 D2 1 1 1 1 1 0 1 1 Class: mids Number of multiple imputations: 1 Imputation methods: C1 C2 A1 B1 D1 D2 C3 W_cont "" "pmm" "pmm" "" "" "" "" "" PredictorMatrix: C1 C2 A1 B1 D1 D2 C3 W_cont C1 0 1 1 1 1 1 1 1 C2 1 0 1 1 1 1 1 1 A1 1 1 0 1 1 1 1 1 B1 1 1 1 0 1 1 1 1 D1 1 1 1 1 0 1 1 1 D2 1 1 1 1 1 0 1 1 Outcome Difference Model (Ydiff): Ydiff ~ cp*1 + b1*M1diff + d1*M1avg Mediator Difference Model (Chained Mediator - M1diff): M1diff ~ a1*1 Mediator Difference Model (Other Mediators): M2diff ~ a2*1 + b_1_2*M1diff + d_1_2*M1avg Indirect Effects: indirect_1 := a1 * b1 indirect_1_2 := a1 * b_1_2 * b2 Total Indirect Effect: total_indirect := indirect_1 + indirect_1_2 Total Effect: total_effect := cp + total_indirect [ FAIL 0 | WARN 2 | SKIP 3 | PASS 224 ] ══ Skipped tests (3) ═══════════════════════════════════════════════════════════ • On CRAN (3): 'test-WsMed.R:113:3', 'test-WsMed.R:140:3', 'test-print.WsMed.R:64:3' [ FAIL 0 | WARN 2 | SKIP 3 | PASS 224 ] > > proc.time() user system elapsed 13.15 1.46 14.60