Running ‘testthat.R’ [77s/101s]
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(ISCA)
  > 
  > test_check("ISCA")
  Iteration:   1, Error: 178.7861317712
  Iteration:   2, Error: 171.5747597791
  Iteration:   3, Error: 168.0788524623
  Iteration:   4, Error: 167.0782509557
  Iteration:   5, Error: 166.8674848310
  Iteration:   6, Error: 166.8255748846
  Iteration:   7, Error: 166.8061797359
  Iteration:   8, Error: 166.7732953909
  Iteration:   9 converged, Error: 166.7732953909
  Iteration:   1, Error: 132.5960578936
  Iteration:   2, Error: 109.5958176312
  Iteration:   3, Error: 100.7111153198
  Iteration:   4, Error: 98.8325828961
  Iteration:   5, Error: 98.7354443751
  Iteration:   6, Error: 98.7331314231
  Iteration:   7 converged, Error: 98.7331314231
  Iteration:   1, Error: 228.0189311924
  Iteration:   2, Error: 207.1523754557
  Iteration:   3, Error: 197.2406411280
  Iteration:   4, Error: 187.6944702188
  Iteration:   5, Error: 181.7161688340
  Iteration:   6, Error: 177.7677971045
  Iteration:   7, Error: 175.1837954898
  Iteration:   8, Error: 172.1195816418
  Iteration:   9, Error: 170.3918813986
  Iteration:  10, Error: 169.3018626894
  Iteration:  11, Error: 168.6592942627
  Iteration:  12, Error: 168.4618891256
  Iteration:  13, Error: 168.3292781306
  Iteration:  14, Error: 168.2520221701
  Iteration:  15, Error: 168.1058174398
  Iteration:  16, Error: 168.0407538295
  Iteration:  17, Error: 168.0014481505
  Iteration:  18, Error: 167.8695195268
  Iteration:  19, Error: 167.7536162352
  Iteration:  20, Error: 167.7389244698
  Iteration:  21 converged, Error: 167.7389244698
  Iteration:   1, Error: 266.7093183856
  Iteration:   2, Error: 231.6299402419
  Iteration:   3, Error: 207.9273864408
  Iteration:   4, Error: 189.1059431457
  Iteration:   5, Error: 175.2861142100
  Iteration:   6, Error: 169.9680809153
  Iteration:   7, Error: 168.0843965564
  Iteration:   8, Error: 167.2621177111
  Iteration:   9, Error: 166.9071126083
  Iteration:  10, Error: 166.8122165932
  Iteration:  11, Error: 166.8074535478
  Iteration:  12 converged, Error: 166.8074535478
  Iteration:   1, Error: 182.7380061497
  Iteration:   2, Error: 172.7499877923
  Iteration:   3, Error: 168.9435763736
  Iteration:   4, Error: 167.5846744151
  Iteration:   5, Error: 167.1276217244
  Iteration:   6, Error: 166.9257127176
  Iteration:   7, Error: 166.8562177392
  Iteration:   8, Error: 166.8255748846
  Iteration:   9, Error: 166.8061797359
  Iteration:  10, Error: 166.7732953909
  Iteration:  11 converged, Error: 166.7732953909
  `mutate_if()` ignored the following grouping variables:
  * Column `cluster`
  Iteration:   1, Error: 194.0147724651
  Iteration:   2, Error: 173.0376117746
  Iteration:   3, Error: 169.4343648372
  Iteration:   4, Error: 168.6452239168
  Iteration:   5, Error: 168.2294838087
  Iteration:   6, Error: 168.0863128293
  Iteration:   7, Error: 167.9748417332
  Iteration:   8, Error: 167.9043232151
  Iteration:   9, Error: 167.8645507894
  Iteration:  10, Error: 167.8605086782
  Iteration:  11 converged, Error: 167.8605086782
  `mutate_if()` ignored the following grouping variables:
  * Column `cluster`
  Iteration:   1, Error: 173.0494463762
  Iteration:   2, Error: 168.1789190473
  Iteration:   3, Error: 166.9057933644
  Iteration:   4, Error: 166.7836152444
  Iteration:   5, Error: 166.7724182207
  Iteration:   6 converged, Error: 166.7724182207
  `mutate_if()` ignored the following grouping variables:
  * Column `cluster`
  Iteration:   1, Error: 245.7255341158
  Iteration:   2, Error: 218.1536294273
  Iteration:   3, Error: 196.9669276780
  Iteration:   4, Error: 181.5621474585
  Iteration:   5, Error: 171.7573542796
  Iteration:   6, Error: 168.3986006630
  Iteration:   7, Error: 167.3298304074
  Iteration:   8, Error: 166.9794342012
  Iteration:   9, Error: 166.8807124110
  Iteration:  10, Error: 166.8436087354
  Iteration:  11, Error: 166.8097336827
  Iteration:  12, Error: 166.8074535478
  Iteration:  13 converged, Error: 166.8074535478
  `mutate_if()` ignored the following grouping variables:
  * Column `cluster`
  Iteration:   1, Error: 189.6763296000
  Iteration:   2, Error: 183.6618470015
  Iteration:   3, Error: 177.5210627320
  Iteration:   4, Error: 172.4454301330
  Iteration:   5, Error: 168.8653062864
  Iteration:   6, Error: 168.1127130069
  Iteration:   7, Error: 167.9092242181
  Iteration:   8, Error: 167.8245329555
  Iteration:   9, Error: 167.8121692234
  Iteration:  10 converged, Error: 167.8121692234
  `mutate_if()` ignored the following grouping variables:
  * Column `cluster`
  Iteration:   1, Error: 174.5724190729
  Iteration:   2, Error: 170.2895173090
  Iteration:   3, Error: 169.0834646081
  Iteration:   4, Error: 168.6646523542
  Iteration:   5, Error: 168.4150954189
  Iteration:   6, Error: 168.3015169687
  Iteration:   7, Error: 168.2253435202
  Iteration:   8, Error: 168.1616485135
  Iteration:   9, Error: 168.1488370645
  Iteration:  10, Error: 168.1389813980
  Iteration:  11 converged, Error: 168.1389813980
  `mutate_if()` ignored the following grouping variables:
  * Column `cluster`
  Iteration:   1, Error: 195.9315138366
  Iteration:   2, Error: 180.9615405238
  Iteration:   3, Error: 175.3343973887
  Iteration:   4, Error: 171.2064657467
  Iteration:   5, Error: 169.4160116383
  Iteration:   6, Error: 168.7281805451
  Iteration:   7, Error: 168.4783812438
  Iteration:   8, Error: 168.3782846769
  Iteration:   9, Error: 168.3292781306
  Iteration:  10, Error: 168.2520221701
  Iteration:  11, Error: 168.1058174398
  Iteration:  12, Error: 168.0407538295
  Iteration:  13, Error: 168.0014481505
  Iteration:  14, Error: 167.8695195268
  Iteration:  15, Error: 167.7536162352
  Iteration:  16, Error: 167.7389244698
  Iteration:  17 converged, Error: 167.7389244698
  `mutate_if()` ignored the following grouping variables:
  * Column `cluster`
  Iteration:   1, Error: 187.6927457890
  Iteration:   2, Error: 175.0110214199
  Iteration:   3, Error: 170.5147874812
  Iteration:   4, Error: 169.1730246379
  Iteration:   5, Error: 168.3639659635
  Iteration:   6, Error: 168.1915540356
  Iteration:   7, Error: 168.1906415626
  Iteration:   8 converged, Error: 168.1906415626
  Iteration:   1, Error: 112.0253161518
  Iteration:   2, Error: 102.8323332749
  Iteration:   3, Error: 99.9888517429
  Iteration:   4, Error: 99.2250675537
  Iteration:   5, Error: 98.9758695182
  Iteration:   6, Error: 98.9319474054
  Iteration:   7, Error: 98.9213053651
  Iteration:   8, Error: 98.9153650216
  Iteration:   9 converged, Error: 98.9153650216
  Iteration:   1, Error: 139.5882751527
  Iteration:   2, Error: 128.4473658835
  Iteration:   3, Error: 119.8887393487
  Iteration:   4, Error: 112.3016487333
  Iteration:   5, Error: 110.4003787872
  Iteration:   6, Error: 109.5695521809
  Iteration:   7, Error: 108.6734032801
  Iteration:   8, Error: 107.6082252358
  Iteration:   9, Error: 107.0850636326
  Iteration:  10, Error: 106.6927980970
  Iteration:  11, Error: 106.5725951357
  Iteration:  12, Error: 106.5353021609
  Iteration:  13, Error: 106.5227652667
  Iteration:  14, Error: 106.5011491274
  Iteration:  15, Error: 106.4577939385
  Iteration:  16 converged, Error: 106.4577939385
  Iteration:   1, Error: 111.4111754334
  Iteration:   2, Error: 103.6800907374
  Iteration:   3, Error: 100.7322184232
  Iteration:   4, Error: 99.6038021388
  Iteration:   5, Error: 98.9198684651
  Iteration:   6, Error: 98.8003607052
  Iteration:   7, Error: 98.7785496828
  Iteration:   8 converged, Error: 98.7785496828
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 14 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-ISCA_random_assignments.R:19:3'): number of draws are correct ──
  Error in `Hmisc::rMultinom(probs.cluster, draws)`: error in multinom: probabilities do not sum to 1
  Backtrace:
      ▆
   1. └─ISCA::ISCA_random_assignments(...) at test-ISCA_random_assignments.R:19:3
   2.   ├─base::cbind(data_ref, Hmisc::rMultinom(probs.cluster, draws))
   3.   │ └─base::cbind(deparse.level, ...)
   4.   │   └─base::data.frame(..., check.names = FALSE)
   5.   └─Hmisc::rMultinom(probs.cluster, draws)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 14 ]
  Error: Test failures
  Execution halted