Running ‘spelling.R’
  Running ‘testthat.R’ [140s/400s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > if (require("testthat")) {
  +   library(parameters)
  +   if (length(strsplit(packageDescription("parameters")$Version, "\\.")[[1]]) > 3) {
  +     Sys.setenv("RunAllparametersTests" = "yes")
  +   } else {
  +     Sys.setenv("RunAllparametersTests" = "no")
  +   }
  + 
  +   si <- Sys.info()
  + 
  +   osx <- tryCatch(
  +     {
  +       if (!is.null(si["sysname"])) {
  +         si["sysname"] == "Darwin" || grepl("^darwin", R.version$os)
  +       } else {
  +         FALSE
  +       }
  +     },
  +     error = function(e) {
  +       FALSE
  +     }
  +   )
  + 
  +   solaris <- tryCatch(
  +     {
  +       if (!is.null(si["sysname"])) {
  +         grepl("SunOS", si["sysname"], ignore.case = TRUE)
  +       } else {
  +         FALSE
  +       }
  +     },
  +     error = function(e) {
  +       FALSE
  +     }
  +   )
  + 
  +   # if (!osx && !solaris) {
  +   #   test_check("parameters")
  +   # }
  +   test_check("parameters")
  + }
  Loading required package: testthat
  
  Uncertainty intervals (equal-tailed) and p-values (two-tailed) computed
    using a Wald z-distribution approximation.
  Waiting for profiling to be done...
  Waiting for profiling to be done...
  Gu & Wahba 4 term additive model
  
  Uncertainty intervals (equal-tailed) and p-values (two-tailed) computed
    using a Wald t-distribution approximation.
  Multiple `BFBayesFactor` models detected - posteriors are extracted from the first numerator model.
  See help("get_parameters", package = "insight").
  Multiple `BFBayesFactor` models detected - posteriors are extracted from the first numerator model.
  See help("get_parameters", package = "insight").
  Contrasts set to contr.sum for the following variables: treatment, gender
  Loading required namespace: GPArotation
  Loading required package: grid
  
  Attaching package: 'survey'
  
  The following object is masked from 'package:lava':
  
      cv
  
  The following object is masked from 'package:graphics':
  
      dotchart
  
  [ FAIL 1 | WARN 0 | SKIP 17 | PASS 568 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (12)
  • empty test (5)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-cluster_analysis.R:6:3): cluster_analysis, predict, matrix ──────
  Error: Could not find variable '4' in data.
  Backtrace:
      ▆
   1. └─parameters::cluster_analysis(iris.dat, n = 4, method = "kmeans") at test-cluster_analysis.R:6:2
   2.   ├─parameters::model_parameters(...)
   3.   └─parameters:::model_parameters.kmeans(...)
   4.     └─datawizard::reshape_longer(...)
   5.       └─datawizard:::.select_nse(...)
   6.         └─datawizard:::.evaluate_pattern(...)
  
  [ FAIL 1 | WARN 0 | SKIP 17 | PASS 568 ]
  Error: Test failures
  Execution halted