Running ‘testthat.R’ [58s/71s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(tglkmeans)
  > library(dplyr)
  
  Attaching package: 'dplyr'
  
  The following object is masked from 'package:testthat':
  
      matches
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  > library(ggplot2)
  > library(purrr)
  
  Attaching package: 'purrr'
  
  The following object is masked from 'package:testthat':
  
      is_null
  
  > library(tgstat)
  > 
  > test_check("tglkmeans")
  KMEans: will generate seeds
  KMeans into generate seeds
  at seed 0
  add new core from 69 to 0
  at seed 1
  done update min distance
  seed range 2850 2950
  picked up 2967 dist was 20.327
  add new core from 2967 to 1
  at seed 2
  done update min distance
  seed range 2800 2900
  picked up 1441 dist was 9.86584
  add new core from 1441 to 2
  at seed 3
  done update min distance
  seed range 2750 2850
  picked up 2228 dist was 5.13519
  add new core from 2228 to 3
  at seed 4
  done update min distance
  seed range 2700 2800
  picked up 796 dist was 4.81838
  add new core from 796 to 4
  at seed 5
  done update min distance
  seed range 2650 2750
  picked up 1784 dist was 2.51596
  add new core from 1784 to 5
  at seed 6
  done update min distance
  seed range 2600 2700
  picked up 1155 dist was 2.31855
  add new core from 1155 to 6
  at seed 7
  done update min distance
  seed range 2550 2650
  picked up 2638 dist was 2.3483
  add new core from 2638 to 7
  at seed 8
  done update min distance
  seed range 2500 2600
  picked up 329 dist was 2.20542
  add new core from 329 to 8
  at seed 9
  done update min distance
  seed range 2450 2550
  picked up 2025 dist was 1.4391
  add new core from 2025 to 9
  at seed 10
  done update min distance
  seed range 2400 2500
  picked up 902 dist was 1.30561
  add new core from 902 to 10
  at seed 11
  done update min distance
  seed range 2350 2450
  picked up 570 dist was 1.36358
  add new core from 570 to 11
  at seed 12
  done update min distance
  seed range 2300 2400
  picked up 1643 dist was 1.16946
  add new core from 1643 to 12
  at seed 13
  done update min distance
  seed range 2250 2350
  picked up 2479 dist was 1.11125
  add new core from 2479 to 13
  at seed 14
  done update min distance
  seed range 2200 2300
  picked up 2745 dist was 1.02825
  add new core from 2745 to 14
  at seed 15
  done update min distance
  seed range 2150 2250
  picked up 1240 dist was 0.997981
  add new core from 1240 to 15
  at seed 16
  done update min distance
  seed range 2100 2200
  picked up 642 dist was 0.795078
  add new core from 642 to 16
  at seed 17
  done update min distance
  seed range 2050 2150
  picked up 152 dist was 0.846696
  add new core from 152 to 17
  at seed 18
  done update min distance
  seed range 2000 2100
  picked up 2342 dist was 0.770655
  add new core from 2342 to 18
  at seed 19
  done update min distance
  seed range 1950 2050
  picked up 1536 dist was 0.857427
  add new core from 1536 to 19
  at seed 20
  done update min distance
  seed range 1900 2000
  picked up 1040 dist was 0.687131
  add new core from 1040 to 20
  at seed 21
  done update min distance
  seed range 1850 1950
  picked up 2139 dist was 0.675675
  add new core from 2139 to 21
  at seed 22
  done update min distance
  seed range 1800 1900
  picked up 233 dist was 0.706245
  add new core from 233 to 22
  at seed 23
  done update min distance
  seed range 1750 1850
  picked up 2805 dist was 0.659995
  add new core from 2805 to 23
  at seed 24
  done update min distance
  seed range 1700 1800
  picked up 804 dist was 0.68143
  add new core from 804 to 24
  at seed 25
  done update min distance
  seed range 1650 1750
  picked up 1371 dist was 0.635471
  add new core from 1371 to 25
  at seed 26
  done update min distance
  seed range 1600 1700
  picked up 1925 dist was 0.764115
  add new core from 1925 to 26
  at seed 27
  done update min distance
  seed range 1550 1650
  picked up 454 dist was 0.551273
  add new core from 454 to 27
  at seed 28
  done update min distance
  seed range 1500 1600
  picked up 1744 dist was 0.577118
  add new core from 1744 to 28
  at seed 29
  done update min distance
  seed range 1450 1550
  picked up 1631 dist was 0.4531
  add new core from 1631 to 29
  KMEans: reassign after init
  KMEans: iter 0
  KMEans: iter 1 changed 51
  KMEans: iter 1
  KMEans: iter 2 changed 36
  KMEans: iter 2
  KMEans: iter 3 changed 10
  KMEans: iter 3
  KMEans: iter 4 changed 8
  KMEans: iter 4
  KMEans: iter 5 changed 10
  KMEans: iter 5
  KMEans: iter 6 changed 7
  KMEans: iter 6
  KMEans: iter 7 changed 5
  KMEans: iter 7
  KMEans: iter 8 changed 4
  KMEans: iter 8
  KMEans: iter 9 changed 3
  KMEans: iter 9
  KMEans: iter 10 changed 1
  KMEans: iter 10
  KMEans: iter 11 changed 1
  KMEans: iter 11
  KMEans: iter 12 changed 3
  KMEans: iter 12
  KMEans: iter 13 changed 1
  KMEans: iter 13
  KMEans: iter 14 changed 2
  KMEans: iter 14
  KMEans: iter 15 changed 2
  KMEans: iter 15
  KMEans: iter 16 changed 2
  KMEans: iter 16
  KMEans: iter 17 changed 0
  KMEans: will generate seeds
  KMeans into generate seeds
  at seed 0
  add new core from 69 to 0
  at seed 1
  done update min distance
  seed range 2850 2950
  picked up 2961 dist was 20.3053
  add new core from 2961 to 1
  at seed 2
  done update min distance
  seed range 2800 2900
  picked up 1434 dist was 9.8658
  add new core from 1434 to 2
  at seed 3
  done update min distance
  seed range 2750 2850
  picked up 2206 dist was 5.13072
  add new core from 2206 to 3
  at seed 4
  done update min distance
  seed range 2700 2800
  picked up 712 dist was 4.77428
  add new core from 712 to 4
  at seed 5
  done update min distance
  seed range 2650 2750
  picked up 1840 dist was 2.50969
  add new core from 1840 to 5
  at seed 6
  done update min distance
  seed range 2600 2700
  picked up 2527 dist was 2.3534
  add new core from 2527 to 6
  at seed 7
  done update min distance
  seed range 2550 2650
  picked up 490 dist was 2.29464
  add new core from 490 to 7
  at seed 8
  done update min distance
  seed range 2500 2600
  picked up 1033 dist was 2.24604
  add new core from 1033 to 8
  at seed 9
  done update min distance
  seed range 2450 2550
  picked up 1642 dist was 1.43883
  add new core from 1642 to 9
  at seed 10
  done update min distance
  seed range 2400 2500
  picked up 2030 dist was 1.2958
  add new core from 2030 to 10
  at seed 11
  done update min distance
  seed range 2350 2450
  picked up 2709 dist was 1.35454
  add new core from 2709 to 11
  at seed 12
  done update min distance
  seed range 2300 2400
  picked up 297 dist was 1.26306
  add new core from 297 to 12
  at seed 13
  done update min distance
  seed range 2250 2350
  picked up 1224 dist was 1.18708
  add new core from 1224 to 13
  at seed 14
  done update min distance
  seed range 2200 2300
  picked up 562 dist was 1.06526
  add new core from 562 to 14
  at seed 15
  done update min distance
  seed range 2150 2250
  picked up 891 dist was 1.13065
  add new core from 891 to 15
  at seed 16
  done update min distance
  seed range 2100 2200
  picked up 2383 dist was 0.877731
  add new core from 2383 to 16
  at seed 17
  done update min distance
  seed range 2050 2150
  picked up 1305 dist was 0.740352
  add new core from 1305 to 17
  at seed 18
  done update min distance
  seed range 2000 2100
  picked up 1924 dist was 0.72513
  add new core from 1924 to 18
  at seed 19
  done update min distance
  seed range 1950 2050
  picked up 1761 dist was 0.863566
  add new core from 1761 to 19
  at seed 20
  done update min distance
  seed range 1900 2000
  picked up 2842 dist was 0.702089
  add new core from 2842 to 20
  at seed 21
  done update min distance
  seed range 1850 1950
  picked up 1537 dist was 0.695759
  add new core from 1537 to 21
  at seed 22
  done update min distance
  seed range 1800 1900
  picked up 2655 dist was 0.719586
  add new core from 2655 to 22
  at seed 23
  done update min distance
  seed range 1750 1850
  picked up 2476 dist was 0.676709
  add new core from 2476 to 23
  at seed 24
  done update min distance
  seed range 1700 1800
  picked up 131 dist was 0.655868
  add new core from 131 to 24
  at seed 25
  done update min distance
  seed range 1650 1750
  picked up 694 dist was 0.612813
  add new core from 694 to 25
  at seed 26
  done update min distance
  seed range 1600 1700
  picked up 316 dist was 0.738415
  add new core from 316 to 26
  at seed 27
  done update min distance
  seed range 1550 1650
  picked up 1159 dist was 0.548351
  add new core from 1159 to 27
  at seed 28
  done update min distance
  seed range 1500 1600
  picked up 978 dist was 0.592342
  add new core from 978 to 28
  at seed 29
  done update min distance
  seed range 1450 1550
  picked up 777 dist was 0.466617
  add new core from 777 to 29
  KMEans: reassign after init
  KMEans: iter 0
  KMEans: iter 1 changed 32
  KMEans: iter 1
  KMEans: iter 2 changed 30
  KMEans: iter 2
  KMEans: iter 3 changed 12
  KMEans: iter 3
  KMEans: iter 4 changed 5
  KMEans: iter 4
  KMEans: iter 5 changed 5
  KMEans: iter 5
  KMEans: iter 6 changed 5
  KMEans: iter 6
  KMEans: iter 7 changed 3
  KMEans: iter 7
  KMEans: iter 8 changed 0
  KMEans: will generate seeds
  KMeans into generate seeds
  at seed 0
  add new core from 69 to 0
  at seed 1
  done update min distance
  seed range 2850 2950
  picked up 2961 dist was 20.3053
  add new core from 2961 to 1
  at seed 2
  done update min distance
  seed range 2800 2900
  picked up 1434 dist was 9.8658
  add new core from 1434 to 2
  at seed 3
  done update min distance
  seed range 2750 2850
  picked up 2206 dist was 5.13072
  add new core from 2206 to 3
  at seed 4
  done update min distance
  seed range 2700 2800
  picked up 712 dist was 4.77428
  add new core from 712 to 4
  at seed 5
  done update min distance
  seed range 2650 2750
  picked up 1840 dist was 2.50969
  add new core from 1840 to 5
  at seed 6
  done update min distance
  seed range 2600 2700
  picked up 2527 dist was 2.3534
  add new core from 2527 to 6
  at seed 7
  done update min distance
  seed range 2550 2650
  picked up 490 dist was 2.29464
  add new core from 490 to 7
  at seed 8
  done update min distance
  seed range 2500 2600
  picked up 1033 dist was 2.24604
  add new core from 1033 to 8
  at seed 9
  done update min distance
  seed range 2450 2550
  picked up 1642 dist was 1.43883
  add new core from 1642 to 9
  at seed 10
  done update min distance
  seed range 2400 2500
  picked up 2030 dist was 1.2958
  add new core from 2030 to 10
  at seed 11
  done update min distance
  seed range 2350 2450
  picked up 2709 dist was 1.35454
  add new core from 2709 to 11
  at seed 12
  done update min distance
  seed range 2300 2400
  picked up 297 dist was 1.26306
  add new core from 297 to 12
  at seed 13
  done update min distance
  seed range 2250 2350
  picked up 1224 dist was 1.18708
  add new core from 1224 to 13
  at seed 14
  done update min distance
  seed range 2200 2300
  picked up 562 dist was 1.06526
  add new core from 562 to 14
  at seed 15
  done update min distance
  seed range 2150 2250
  picked up 891 dist was 1.13065
  add new core from 891 to 15
  at seed 16
  done update min distance
  seed range 2100 2200
  picked up 2383 dist was 0.877731
  add new core from 2383 to 16
  at seed 17
  done update min distance
  seed range 2050 2150
  picked up 1305 dist was 0.740352
  add new core from 1305 to 17
  at seed 18
  done update min distance
  seed range 2000 2100
  picked up 1924 dist was 0.72513
  add new core from 1924 to 18
  at seed 19
  done update min distance
  seed range 1950 2050
  picked up 1761 dist was 0.863566
  add new core from 1761 to 19
  at seed 20
  done update min distance
  seed range 1900 2000
  picked up 2842 dist was 0.702089
  add new core from 2842 to 20
  at seed 21
  done update min distance
  seed range 1850 1950
  picked up 1537 dist was 0.695759
  add new core from 1537 to 21
  at seed 22
  done update min distance
  seed range 1800 1900
  picked up 2655 dist was 0.719586
  add new core from 2655 to 22
  at seed 23
  done update min distance
  seed range 1750 1850
  picked up 2476 dist was 0.676709
  add new core from 2476 to 23
  at seed 24
  done update min distance
  seed range 1700 1800
  picked up 131 dist was 0.655868
  add new core from 131 to 24
  at seed 25
  done update min distance
  seed range 1650 1750
  picked up 694 dist was 0.612813
  add new core from 694 to 25
  at seed 26
  done update min distance
  seed range 1600 1700
  picked up 316 dist was 0.738415
  add new core from 316 to 26
  at seed 27
  done update min distance
  seed range 1550 1650
  picked up 1159 dist was 0.548351
  add new core from 1159 to 27
  at seed 28
  done update min distance
  seed range 1500 1600
  picked up 978 dist was 0.592342
  add new core from 978 to 28
  at seed 29
  done update min distance
  seed range 1450 1550
  picked up 777 dist was 0.466617
  add new core from 777 to 29
  KMEans: reassign after init
  KMEans: iter 0
  KMEans: iter 1 changed 32
  KMEans: iter 1
  KMEans: iter 2 changed 30
  KMEans: iter 2
  KMEans: iter 3 changed 12
  KMEans: iter 3
  KMEans: iter 4 changed 5
  KMEans: iter 4
  KMEans: iter 5 changed 5
  KMEans: iter 5
  KMEans: iter 6 changed 5
  KMEans: iter 6
  KMEans: iter 7 changed 3
  KMEans: iter 7
  KMEans: iter 8 changed 0
  [ FAIL 1 | WARN 0 | SKIP 2 | PASS 203 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (2)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-clustering.R:28:5'): Stop when there are rows which contain only missing data ──
  Error in `vectbl_assign(x[[j]], i, recycled_value[[j]])`: DLL requires the use of native symbols
  Backtrace:
      ▆
   1. ├─base::`[<-`(`*tmp*`, 3, -1, value = `<lgl>`) at test-clustering.R:28:4
   2. └─tibble:::`[<-.tbl_df`(`*tmp*`, 3, -1, value = `<lgl>`) at test-clustering.R:28:4
   3.   └─tibble:::tbl_subassign(x, i, j, value, i_arg, j_arg, substitute(value))
   4.     └─tibble:::tbl_subassign_row(xj, i, value, i_arg, value_arg, call)
   5.       ├─base::withCallingHandlers(...)
   6.       └─tibble:::vectbl_assign(x[[j]], i, recycled_value[[j]])
  
  [ FAIL 1 | WARN 0 | SKIP 2 | PASS 203 ]
  Error: Test failures
  Execution halted