easystats / insight

:crystal_ball: Easy access to model information for various model objects
https://easystats.github.io/insight/
GNU General Public License v3.0
404 stars 39 forks source link

Failing tests #886

Closed IndrajeetPatil closed 5 months ago

IndrajeetPatil commented 5 months ago
── Error ('test-clean_parameters.R:23:5'): clean_parameters blavaan ────────────
Error: Error: lavaan->lav_options_checkvalues():  
   invalid value in model.type option: "bsem".
Backtrace:
    ▆
Error: Error: R CMD check found ERRORs
Execution halted
 1. └─blavaan::blavaan(...)
 2.   ├─base::do.call("lavaan", dotdotdot)
 3.   └─lavaan::lavaan(...)
 4.     └─lavaan:::lav_lavaan_step02_options(...)
 5.       └─lavaan:::lav_options_set(opt)
 6.         └─lavaan:::lav_options_check(opt, opt.check, "")
 7.           └─lavaan:::lav_options_checkvalues(opt.name, opt.value, opt.check1$chr)
 8.             └─lavaan:::lav_msg_stop(...)
── Error ('test-compact-list.R:25:3'): compact_list, vctrs ─────────────────────
<vctrs_error_ptype2/vctrs_error_incompatible_type/vctrs_error_incompatible/vctrs_error/rlang_error/error/condition>
Error in `vec_equal(e1, e2)`: Can't combine `..1` <haven_labelled> and `..2` <character>.
Backtrace:
     ▆
  1. ├─insight::compact_list(mtcars) at test-compact-list.R:25:3
  2. │ ├─...[] at insight/R/utils_compact.R:15:5
  3. │ ├─base::`[.data.frame`(...) at insight/R/utils_compact.R:15:5
  4. │ └─base::sapply(...)
  5. │   └─base::lapply(X = X, FUN = FUN, ...)
  6. │     └─insight (local) FUN(X[[i]], ...)
  7. │       └─vctrs:::`==.vctrs_vctr`(i, "NULL") at insight/R/utils_compact.R:15:18
  8. │         └─vctrs::vec_equal(e1, e2)
  9. │           └─vctrs:::vec_cast_common_params(!!!args, .to = .ptype)
 10. │             └─vctrs:::vec_cast_common_opts(...)
 11. └─vctrs (local) `<fn>`()
 12.   └─vctrs::vec_default_ptype2(...)
 13.     ├─base::withRestarts(...)
 14.     │ └─base (local) withOneRestart(expr, restarts[[1L]])
 15.     │   └─base (local) doWithOneRestart(return(expr), restart)
 16.     └─vctrs::stop_incompatible_type(...)
 17.       └─vctrs:::stop_incompatible(...)
 18.         └─vctrs:::stop_vctrs(...)
 19.           └─rlang::abort(message, class = c(class, "vctrs_error"), ..., call = call)
strengejacke commented 5 months ago

For the second issue, we haven't found a good solution yet. For now, I'd suggest removing that test again. The solution would probably be not to use "invalid R code" (i.e. code that breaks valid R code or changes regular R behaviour in unexpected ways, i.e. not to use vctrs). I'd tag this issue as "invalid".

strengejacke commented 5 months ago

First one is an error in blavaan, most likely to the recent lavaan update. I filed an issue: https://github.com/ecmerkle/blavaan/issues/79

strengejacke commented 5 months ago

blavaan was updated on CRAN, test should work again now.