- using R version 4.4.1 (2024-06-14)
- using platform: aarch64-apple-darwin20
- R was compiled by
Apple clang version 14.0.0 (clang-1400.0.29.202)
GNU Fortran (GCC) 12.2.0
- running under: macOS Ventura 13.4
- using session charset: UTF-8
- checking for file ‘tidySEM/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘tidySEM’ version ‘0.2.8’
- 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 ‘tidySEM’ can be installed ... [14s/15s] OK
See the install log for details.
- checking installed package size ... OK
- 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 ... [2s/2s] OK
- checking whether the package can be unloaded cleanly ... [2s/2s] OK
- checking whether the namespace can be loaded with stated dependencies ... [2s/2s] OK
- checking whether the namespace can be unloaded cleanly ... [3s/3s] OK
- checking loading without being on the library search path ... [4s/4s] 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 ... [15s/15s] 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 ... [6s/6s] ERROR
Running examples in ‘tidySEM-Ex.R’ failed
The error most likely occurred in:
> ### Name: pseudo_class
> ### Title: Estimate an Auxiliary Model using the Pseudo-Class Method
> ### Aliases: pseudo_class pseudo_class.MxModel
>
> ### ** Examples
>
> if(requireNamespace("OpenMx", quietly = TRUE)){
+ set.seed(2)
+ dat <- iris[c(1:5, 50:55, 100:105), 1:4]
+ colnames(dat) <- c("SL", "SW", "PL", "PW")
+ fit <- suppressWarnings(mx_profiles(data = dat, classes = 3))
+
+ pct_mx <- pseudo_class(x = fit,
+ model = "SL ~ class",
+ data = dat,
+ m = 2)
+
+ pct_lm <- pseudo_class(x = fit,
+ model = lm( SL ~ class, data = data),
+ data = dat,
+ m = 2)
+
+
+ pcte <- pseudo_class(x = fit,
+ model = lm(SL ~ class, data = data),
+ data = dat,
+ m = 2)
+
+ pct_func <- pseudo_class(x = fit,
+ model = function(data){lm(SL ~ class, data = data)},
+ data = dat,
+ m = 2)
+
+
+ }
Running mix3 with 18 parameters
Running mix3 with 18 parameters
The degrees of freedom are assumed to be equal to the total number of observations used in the model ( 17 ) minus the number of parameters estimated ( 5 ). This may not be correct. If necessary, provide a better value via the 'df_complete' argument
Error in pseudo_class_pool.default(fits, ...) :
Cannot pool fit objects, because package 'mice' is not installed
Calls: pseudo_class ... pseudo_class.class_draws -> pseudo_class_pool -> pseudo_class_pool.default
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [42s/42s] ERROR
Running ‘testthat.R’ [42s/41s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(tidySEM)
> if(requireNamespace("OpenMx", quietly = TRUE)) require("OpenMx")
Loading required package: OpenMx
OpenMx may run faster if it is compiled to take advantage of multiple cores.
> if(requireNamespace("umx", quietly = TRUE)) require("umx")
Loading required package: umx
For an overview type '?umx'
Attaching package: 'umx'
The following object is masked from 'package:stats':
loadings
> options("test_mplus" = FALSE)
> test_check("tidySEM")
[ FAIL 1 | WARN 2 | SKIP 6 | PASS 118 ]
══ Skipped tests (6) ═══════════════════════════════════════════════════════════
• Not run by package maintainer (5): 'test-multigroup_mx.R:3:5',
'test-openmx_ordinal.R:3:5', 'test-openmx_ordinal_methods.R:4:5',
'test-plot_multigroup_multilevel.R:2:3', 'test-plot_plot_prob.R:3:3'
• On CRAN (1): 'test-plot_profiles_varyingcov.R:2:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-pseudo_class_technique.R:8:3'): pseudo_class works ─────────────
Error in `pseudo_class_pool.default(fits, ...)`: Cannot pool fit objects, because package 'mice' is not installed
Backtrace:
▆
1. ├─tidySEM::pseudo_class(...)
2. └─tidySEM:::pseudo_class.class_draws(...)
3. ├─tidySEM:::pseudo_class_pool(fits, ...)
4. └─tidySEM:::pseudo_class_pool.default(fits, ...)
[ FAIL 1 | WARN 2 | SKIP 6 | PASS 118 ]
Error: Test failures
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [34s/33s] OK
- checking PDF version of manual ... [3s/3s] OK
- DONE
Status: 2 ERRORs
- using check arguments '--no-clean-on-error '