Running ‘testthat.R’ [72s/91s]
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: 239.6731494143
  Iteration:   2, Error: 202.1771588539
  Iteration:   3, Error: 184.0674778679
  Iteration:   4, Error: 177.5526859133
  Iteration:   5, Error: 175.6420961429
  Iteration:   6, Error: 173.1728470807
  Iteration:   7, Error: 171.1735167346
  Iteration:   8, Error: 169.9737039945
  Iteration:   9, Error: 169.0962153712
  Iteration:  10, Error: 168.5889660210
  Iteration:  11, Error: 168.4185734121
  Iteration:  12, Error: 168.2520221701
  Iteration:  13, Error: 168.1058174398
  Iteration:  14, Error: 168.0407538295
  Iteration:  15, Error: 168.0014481505
  Iteration:  16, Error: 167.8695195268
  Iteration:  17, Error: 167.7536162352
  Iteration:  18, Error: 167.7389244698
  Iteration:  19 converged, Error: 167.7389244698
  Iteration:   1, Error: 117.3736603172
  Iteration:   2, Error: 108.3214583927
  Iteration:   3, Error: 103.9496147642
  Iteration:   4, Error: 100.4347573144
  Iteration:   5, Error: 98.8914034131
  Iteration:   6, Error: 98.3478958168
  Iteration:   7, Error: 98.1414098804
  Iteration:   8, Error: 98.1109591716
  Iteration:   9, Error: 98.0722433756
  Iteration:  10, Error: 98.0359501149
  Iteration:  11, Error: 97.9951016599
  Iteration:  12, Error: 97.7422255170
  Iteration:  13, Error: 97.4365067304
  Iteration:  14, Error: 97.2456940631
  Iteration:  15, Error: 97.2260500777
  Iteration:  16, Error: 96.9886645159
  Iteration:  17, Error: 96.7492571357
  Iteration:  18, Error: 96.5966687368
  Iteration:  19, Error: 96.5049091526
  Iteration:  20, Error: 96.4847255134
  Iteration:  21, Error: 96.4742345911
  Iteration:  22 converged, Error: 96.4742345911
  Iteration:   1, Error: 270.0606803516
  Iteration:   2, Error: 230.4550393337
  Iteration:   3, Error: 200.7920127849
  Iteration:   4, Error: 185.7368909809
  Iteration:   5, Error: 173.0433278243
  Iteration:   6, Error: 168.4394877782
  Iteration:   7, Error: 167.2523324235
  Iteration:   8, Error: 166.9240415088
  Iteration:   9, Error: 166.8554834139
  Iteration:  10, Error: 166.8170747018
  Iteration:  11, Error: 166.7837764358
  Iteration:  12 converged, Error: 166.7837764358
  Iteration:   1, Error: 233.6939750656
  Iteration:   2, Error: 213.9190126477
  Iteration:   3, Error: 205.2423734898
  Iteration:   4, Error: 199.5688516558
  Iteration:   5, Error: 196.8706113907
  Iteration:   6, Error: 196.0439102341
  Iteration:   7, Error: 195.8044119655
  Iteration:   8, Error: 195.7968267904
  Iteration:   9 converged, Error: 195.7968267904
  Iteration:   1, Error: 229.2466261514
  Iteration:   2, Error: 199.4124773441
  Iteration:   3, Error: 185.3737435463
  Iteration:   4, Error: 175.0755655139
  Iteration:   5, Error: 169.1104923939
  Iteration:   6, Error: 167.7816184068
  Iteration:   7, Error: 167.2216561124
  Iteration:   8, Error: 166.9617863497
  Iteration:   9, Error: 166.8742505858
  Iteration:  10, Error: 166.8255748846
  Iteration:  11, Error: 166.8061797359
  Iteration:  12, Error: 166.7732953909
  Iteration:  13 converged, Error: 166.7732953909
  `mutate_if()` ignored the following grouping variables:
  * Column `cluster`
  Iteration:   1, Error: 219.7299622498
  Iteration:   2, Error: 204.7528794795
  Iteration:   3, Error: 195.8773644062
  Iteration:   4, Error: 187.1990466031
  Iteration:   5, Error: 182.2361076520
  Iteration:   6, Error: 178.5921672388
  Iteration:   7, Error: 175.3292158913
  Iteration:   8, Error: 172.2883726900
  Iteration:   9, Error: 170.5168696903
  Iteration:  10, Error: 169.3617766164
  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
  `mutate_if()` ignored the following grouping variables:
  * Column `cluster`
  Iteration:   1, Error: 247.8997032172
  Iteration:   2, Error: 222.3175252440
  Iteration:   3, Error: 206.7213670753
  Iteration:   4, Error: 198.2016338297
  Iteration:   5, Error: 189.2990467715
  Iteration:   6, Error: 184.3822287438
  Iteration:   7, Error: 179.8390709200
  Iteration:   8, Error: 176.2865272485
  Iteration:   9, Error: 173.0991780119
  Iteration:  10, Error: 170.8099961320
  Iteration:  11, Error: 169.5462238622
  Iteration:  12, Error: 168.7472769418
  Iteration:  13, Error: 168.4833930302
  Iteration:  14, Error: 168.3292781306
  Iteration:  15, Error: 168.2520221701
  Iteration:  16, Error: 168.1058174398
  Iteration:  17, Error: 168.0407538295
  Iteration:  18, Error: 168.0014481505
  Iteration:  19, Error: 167.8695195268
  Iteration:  20, Error: 167.7536162352
  Iteration:  21, Error: 167.7389244698
  Iteration:  22 converged, Error: 167.7389244698
  `mutate_if()` ignored the following grouping variables:
  * Column `cluster`
  Iteration:   1, Error: 247.0656595149
  Iteration:   2, Error: 222.7121455354
  Iteration:   3, Error: 197.7552804734
  Iteration:   4, Error: 184.7323957553
  Iteration:   5, Error: 173.6775739003
  Iteration:   6, Error: 169.2860722953
  Iteration:   7, Error: 167.7319968284
  Iteration:   8, Error: 167.2322930470
  Iteration:   9, Error: 166.9656365805
  Iteration:  10, Error: 166.8803377706
  Iteration:  11, Error: 166.8278424945
  Iteration:  12, Error: 166.8119912422
  Iteration:  13, Error: 166.7784712995
  Iteration:  14, Error: 166.7778340943
  Iteration:  15 converged, Error: 166.7778340943
  `mutate_if()` ignored the following grouping variables:
  * Column `cluster`
  Iteration:   1, Error: 193.5307589241
  Iteration:   2, Error: 176.0168181467
  Iteration:   3, Error: 170.3278324339
  Iteration:   4, Error: 167.8153632975
  Iteration:   5, Error: 167.2448323818
  Iteration:   6, Error: 166.9891785549
  Iteration:   7, Error: 166.8742505858
  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: 178.9888216166
  Iteration:   2, Error: 171.2568516305
  Iteration:   3, Error: 168.8346452184
  Iteration:   4, Error: 168.4550200624
  Iteration:   5, Error: 168.2627679141
  Iteration:   6, Error: 168.2070325256
  Iteration:   7, Error: 168.1948375869
  Iteration:   8, Error: 168.1946746165
  Iteration:   9 converged, Error: 168.1946746165
  `mutate_if()` ignored the following grouping variables:
  * Column `cluster`
  Iteration:   1, Error: 184.8073455670
  Iteration:   2, Error: 172.2687474327
  Iteration:   3, Error: 169.0556047253
  Iteration:   4, Error: 168.5429902836
  Iteration:   5, Error: 168.4360250453
  Iteration:   6, Error: 168.2920898165
  Iteration:   7, Error: 168.2830523499
  Iteration:   8, Error: 168.2827661240
  Iteration:   9 converged, Error: 168.2827661240
  `mutate_if()` ignored the following grouping variables:
  * Column `cluster`
  Iteration:   1, Error: 207.4390188560
  Iteration:   2, Error: 186.4903753409
  Iteration:   3, Error: 177.0841248987
  Iteration:   4, Error: 172.4264330124
  Iteration:   5, Error: 170.1036427734
  Iteration:   6, Error: 168.8483872903
  Iteration:   7, Error: 168.1782574292
  Iteration:   8, Error: 167.8425926638
  Iteration:   9, Error: 167.7921285792
  Iteration:  10 converged, Error: 167.7921285792
  Iteration:   1, Error: 126.8735327815
  Iteration:   2, Error: 114.3419300656
  Iteration:   3, Error: 102.9531430393
  Iteration:   4, Error: 100.1643179229
  Iteration:   5, Error: 98.9814017898
  Iteration:   6, Error: 98.1098768091
  Iteration:   7, Error: 97.6486880248
  Iteration:   8, Error: 97.4465839335
  Iteration:   9, Error: 97.3784210470
  Iteration:  10, Error: 97.1842022660
  Iteration:  11, Error: 97.0068362905
  Iteration:  12, Error: 96.9068136768
  Iteration:  13, Error: 96.8728791924
  Iteration:  14, Error: 96.8650885357
  Iteration:  15 converged, Error: 96.8650885357
  Iteration:   1, Error: 116.7711150719
  Iteration:   2, Error: 111.1573523731
  Iteration:   3, Error: 108.3392570245
  Iteration:   4, Error: 107.3877134938
  Iteration:   5, Error: 107.1002941360
  Iteration:   6, Error: 106.9502928999
  Iteration:   7, Error: 106.9001294463
  Iteration:   8, Error: 106.8546667463
  Iteration:   9, Error: 106.8261167571
  Iteration:  10, Error: 106.7791476009
  Iteration:  11, Error: 106.6376498086
  Iteration:  12, Error: 106.5115569883
  Iteration:  13, Error: 106.4945131987
  Iteration:  14, Error: 106.4859211798
  Iteration:  15 converged, Error: 106.4859211798
  Iteration:   1, Error: 106.0809277476
  Iteration:   2, Error: 103.0257138029
  Iteration:   3, Error: 100.3645122960
  Iteration:   4, Error: 98.2544898717
  Iteration:   5, Error: 97.4918383406
  Iteration:   6, Error: 96.8206386585
  Iteration:   7, Error: 96.5410992282
  Iteration:   8, Error: 96.4982985480
  Iteration:   9, Error: 96.4868529269
  Iteration:  10 converged, Error: 96.4868529269
  [ 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