- using R version 4.5.2 Patched (2026-01-31 r89382)
- using platform: aarch64-apple-darwin20
- R was compiled by
Apple clang version 16.0.0 (clang-1600.0.26.6)
GNU Fortran (GCC) 14.2.0
- running under: macOS Ventura 13.7.8
- using session charset: UTF-8
- checking for file ‘wsMed/DESCRIPTION’ ... OK
- this is package ‘wsMed’ version ‘1.2.2’
- package encoding: UTF-8
- 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 executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘wsMed’ can be installed ... [7s/7s] OK
See the install log for details.
- checking installed package size ... INFO
installed size is 5.3Mb
sub-directories of 1Mb or more:
doc 2.9Mb
extdata 1.2Mb
- checking package directory ... 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 ... [2s/2s] OK
- checking whether the package can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the package can be unloaded cleanly ... [1s/2s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the namespace can be unloaded cleanly ... [2s/2s] OK
- checking loading without being on the library search path ... [2s/2s] 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 ... [7s/8s] OK
- checking Rd files ... [0s/0s] OK
- checking Rd metadata ... 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 ... [0s/0s] 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 ... [3s/3s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [58s/72s] ERROR
Running ‘testthat.R’ [58s/71s]
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(wsMed)
> test_check("wsMed")
This is lavaan 0.7-3
lavaan is FREE software! Please report any bugs.
Attaching package: 'mice'
The following object is masked from 'package:stats':
filter
The following objects are masked from 'package:base':
cbind, rbind
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
Saving _problems/test-standardization-phase1-250.R
wsMed analysis
Model: P | DE | Observations: 100
Effects:
wsMed all | raw scale | mc
90% percentile intervals; 100 joint draws; SE from effect draws
Condition contrast: after - before
Estimate Std. Error CI lower CI upper
cp: Direct effect -0.031795 0.015409 -0.057592 -0.004816
indirect_1: A 0.001311 0.004008 -0.003845 0.006398
indirect_2: B -0.001120 0.002270 -0.004713 0.002851
total_indirect: Total indirect effect 0.000191 0.004416 -0.006473 0.005860
total: Total effect -0.031604 0.014997 -0.052637 -0.006763
Inference draws: 100 retained of 100 ; 0 excluded before effect extraction.
Use as.data.frame() for the full-precision table and metadata.
Post-fit admissibility: 1 of 1 ; excluded rows: 0
[ FAIL 1 | WARN 0 | SKIP 8 | PASS 2191 ]
══ Skipped tests (8) ═══════════════════════════════════════════════════════════
• On CRAN (8): 'test-WsMed.R:135:3', 'test-WsMed.R:162:3',
'test-modular-workflow.R:224:3', 'test-print.WsMed.R:81:3',
'test-product-covariances.R:130:3', 'test-product-covariances.R:293:3',
'test-workflow-presentation.R:185:3', 'test-workflow-reliability.R:170:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-standardization-phase1.R:250:5'): UD sparse and reverse-order paths use the same standardization rules ──
Expected maximum scaled refit difference categorical forward <= `tolerance`.
Actual comparison: 0.0000239 > 0.0000200
Difference: 0.0000039 > 0
Backtrace:
▆
1. └─wsMed:::expect_refit_equal(...) at test-standardization-phase1.R:250:5
2. └─testthat::expect_lte(...) at ./helper-refit-comparison.R:27:3
[ FAIL 1 | WARN 0 | SKIP 8 | PASS 2191 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [26s/28s] OK
- checking PDF version of manual ... [6s/5s] OK
- DONE
Status: 1 ERROR