Running ‘testthat.R’ [133s/171s]
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: 228.2581739430
  Iteration:   2, Error: 209.5131626798
  Iteration:   3, Error: 202.0751288502
  Iteration:   4, Error: 192.8792468410
  Iteration:   5, Error: 185.9666028639
  Iteration:   6, Error: 180.8818186478
  Iteration:   7, Error: 176.9400656510
  Iteration:   8, Error: 173.6101003480
  Iteration:   9, Error: 171.0672114767
  Iteration:  10, Error: 169.6862753862
  Iteration:  11, Error: 168.8883376825
  Iteration:  12, Error: 168.5352982140
  Iteration:  13, Error: 168.3782846769
  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
  Iteration:   1, Error: 145.3421155844
  Iteration:   2, Error: 132.0829983737
  Iteration:   3, Error: 128.4718066294
  Iteration:   4, Error: 125.1840194764
  Iteration:   5, Error: 122.5970624936
  Iteration:   6, Error: 117.5325238747
  Iteration:   7, Error: 109.5821672496
  Iteration:   8, Error: 104.1963952822
  Iteration:   9, Error: 100.5302985285
  Iteration:  10, Error: 98.5710566964
  Iteration:  11, Error: 97.2088919030
  Iteration:  12, Error: 96.7895739172
  Iteration:  13, Error: 96.6109648143
  Iteration:  14, Error: 96.4981277812
  Iteration:  15, Error: 96.4709999690
  Iteration:  16, Error: 96.4707859459
  Iteration:  17 converged, Error: 96.4707859459
  Iteration:   1, Error: 266.0276549787
  Iteration:   2, Error: 229.8761269580
  Iteration:   3, Error: 198.0722275753
  Iteration:   4, Error: 187.2198114098
  Iteration:   5, Error: 182.1445975340
  Iteration:   6, Error: 176.2864391827
  Iteration:   7, Error: 172.9922129290
  Iteration:   8, Error: 171.5455791101
  Iteration:   9, Error: 170.4962345117
  Iteration:  10, Error: 169.6399977302
  Iteration:  11, Error: 168.8590923602
  Iteration:  12, Error: 168.3622378120
  Iteration:  13, Error: 168.2087435319
  Iteration:  14, Error: 168.0006851721
  Iteration:  15, Error: 167.9532629326
  Iteration:  16, Error: 167.9043232151
  Iteration:  17, Error: 167.8645507894
  Iteration:  18, Error: 167.8605086782
  Iteration:  19 converged, Error: 167.8605086782
  Iteration:   1, Error: 213.5757796608
  Iteration:   2, Error: 199.7089948512
  Iteration:   3, Error: 189.1115203972
  Iteration:   4, Error: 177.1848772162
  Iteration:   5, Error: 169.9590885746
  Iteration:   6, Error: 167.6984682284
  Iteration:   7, Error: 166.9769142712
  Iteration:   8, Error: 166.8684270684
  Iteration:   9, Error: 166.8101818053
  Iteration:  10, Error: 166.8074535478
  Iteration:  11 converged, Error: 166.8074535478
  Iteration:   1, Error: 201.5898505834
  Iteration:   2, Error: 182.1372974589
  Iteration:   3, Error: 173.0065893047
  Iteration:   4, Error: 170.1015546407
  Iteration:   5, Error: 168.8895723189
  Iteration:   6, Error: 168.4033258864
  Iteration:   7, Error: 168.0306223738
  Iteration:   8, Error: 167.8183352131
  Iteration:   9, Error: 167.7683485519
  Iteration:  10, Error: 167.7542374988
  Iteration:  11 converged, Error: 167.7542374988
  `mutate_if()` ignored the following grouping variables:
  * Column `cluster`
  Iteration:   1, Error: 206.7056208143
  Iteration:   2, Error: 179.5963072595
  Iteration:   3, Error: 170.6780970037
  Iteration:   4, Error: 168.4628273590
  Iteration:   5, Error: 168.0349560687
  Iteration:   6, Error: 167.9857224578
  Iteration:   7, Error: 167.8496063913
  Iteration:   8, Error: 167.7484848216
  Iteration:   9, Error: 167.7365260023
  Iteration:  10 converged, Error: 167.7365260023
  `mutate_if()` ignored the following grouping variables:
  * Column `cluster`
  Iteration:   1, Error: 181.2360967441
  Iteration:   2, Error: 175.8888096644
  Iteration:   3, Error: 172.9710043464
  Iteration:   4, Error: 170.2203580744
  Iteration:   5, Error: 168.8924592294
  Iteration:   6, Error: 168.2343287432
  Iteration:   7, Error: 168.1257389052
  Iteration:   8, Error: 167.9865060139
  Iteration:   9, Error: 167.9506700925
  Iteration:  10, Error: 167.9476585541
  Iteration:  11 converged, Error: 167.9476585541
  `mutate_if()` ignored the following grouping variables:
  * Column `cluster`
  Iteration:   1, Error: 197.6495330522
  Iteration:   2, Error: 194.0087858510
  Iteration:   3, Error: 185.2821983882
  Iteration:   4, Error: 173.6655561814
  Iteration:   5, Error: 169.2433043860
  Iteration:   6, Error: 168.6552461226
  Iteration:   7, Error: 168.4553116742
  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: 299.0687754116
  Iteration:   2, Error: 262.6831792513
  Iteration:   3, Error: 224.5756043495
  Iteration:   4, Error: 203.1107290515
  Iteration:   5, Error: 186.5606023752
  Iteration:   6, Error: 175.2161526265
  Iteration:   7, Error: 170.1723955696
  Iteration:   8, Error: 167.7989030184
  Iteration:   9, Error: 167.2448323818
  Iteration:  10, Error: 166.9891785549
  Iteration:  11, Error: 166.8742505858
  Iteration:  12, Error: 166.8255748846
  Iteration:  13, Error: 166.8061797359
  Iteration:  14, Error: 166.7732953909
  Iteration:  15 converged, Error: 166.7732953909
  `mutate_if()` ignored the following grouping variables:
  * Column `cluster`
  Iteration:   1, Error: 193.1308332746
  Iteration:   2, Error: 183.4887192622
  Iteration:   3, Error: 173.4382654384
  Iteration:   4, Error: 169.3196327024
  Iteration:   5, Error: 167.3239716739
  Iteration:   6, Error: 166.9647417769
  Iteration:   7, Error: 166.8674848310
  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: 216.5988013655
  Iteration:   2, Error: 201.4608871186
  Iteration:   3, Error: 196.8808664403
  Iteration:   4, Error: 195.9681963334
  Iteration:   5, Error: 195.8329959379
  Iteration:   6, Error: 195.8216029746
  Iteration:   7, Error: 195.8050175552
  Iteration:   8, Error: 195.7993213629
  Iteration:   9 converged, Error: 195.7993213629
  `mutate_if()` ignored the following grouping variables:
  * Column `cluster`
  Iteration:   1, Error: 206.5722116468
  Iteration:   2, Error: 185.0653347607
  Iteration:   3, Error: 172.2930136553
  Iteration:   4, Error: 168.5478437825
  Iteration:   5, Error: 167.4511754031
  Iteration:   6, Error: 167.0059701786
  Iteration:   7, Error: 166.8857359710
  Iteration:   8, Error: 166.8278424945
  Iteration:   9, Error: 166.8119912422
  Iteration:  10, Error: 166.7784712995
  Iteration:  11, Error: 166.7778340943
  Iteration:  12 converged, Error: 166.7778340943
  Iteration:   1, Error: 152.0706177881
  Iteration:   2, Error: 132.4623992541
  Iteration:   3, Error: 122.4062617734
  Iteration:   4, Error: 111.9054748227
  Iteration:   5, Error: 106.7004593960
  Iteration:   6, Error: 103.7874552893
  Iteration:   7, Error: 101.2172025561
  Iteration:   8, Error: 99.8783381852
  Iteration:   9, Error: 99.5815594284
  Iteration:  10, Error: 99.2312617441
  Iteration:  11, Error: 99.0102524129
  Iteration:  12, Error: 98.7760226295
  Iteration:  13, Error: 98.6767738032
  Iteration:  14, Error: 98.5851109089
  Iteration:  15, Error: 98.5447866487
  Iteration:  16, Error: 98.5189218035
  Iteration:  17, Error: 98.4883474223
  Iteration:  18, Error: 98.4692732027
  Iteration:  19, Error: 98.4690918132
  Iteration:  20 converged, Error: 98.4690918132
  Iteration:   1, Error: 136.3497519454
  Iteration:   2, Error: 124.0224881461
  Iteration:   3, Error: 115.9322532749
  Iteration:   4, Error: 104.8012119532
  Iteration:   5, Error: 99.2389561729
  Iteration:   6, Error: 97.6990923739
  Iteration:   7, Error: 97.1707001982
  Iteration:   8, Error: 97.0632628228
  Iteration:   9, Error: 96.9236986535
  Iteration:  10, Error: 96.8959613551
  Iteration:  11, Error: 96.8853237415
  Iteration:  12 converged, Error: 96.8853237415
  Iteration:   1, Error: 156.9275801492
  Iteration:   2, Error: 137.1467601938
  Iteration:   3, Error: 128.0799972367
  Iteration:   4, Error: 121.5966550947
  Iteration:   5, Error: 114.2141482611
  Iteration:   6, Error: 110.5276197333
  Iteration:   7, Error: 108.7218227173
  Iteration:   8, Error: 107.6210672300
  Iteration:   9, Error: 106.6634033090
  Iteration:  10, Error: 106.4442114389
  Iteration:  11, Error: 106.4020863649
  Iteration:  12, Error: 106.3956927122
  Iteration:  13 converged, Error: 106.3956927122
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 14 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-ISCA_random_assignments.R:27:3'): no missing values in draw variable ──
  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:27: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