Running ‘testthat.R’ [1s/1s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(clusternor)
  Loading required package: Rcpp
  > 
  > test_check("clusternor")
  
  
  ***Running test for fcmeans***
  
  Data ==> memory, centroids ==> memory
  
  Data ==> memory, centroids ==> memory
  
  Data ==> memory, centroids ==> compute
  
  $nrow
  [1] 50
  
  $ncol
  [1] 5
  
  $iters
  [1] 21
  
  $k
  [1] 8
  
  $centers
           [,1]     [,2]     [,3]     [,4]     [,5]
  [1,] 3.064769 2.934908 2.738242 3.298497 2.844551
  [2,] 3.015320 3.013633 2.770685 2.955266 3.051938
  [3,] 4.513284 3.880610 4.156640 4.325825 3.100727
  [4,] 2.849448 2.974869 2.946936 2.447302 3.327008
  [5,] 2.491785 2.790580 3.414452 1.913792 3.267746
  [6,] 3.096226 2.912256 2.765275 3.344278 2.809726
  [7,] 2.887287 3.006538 2.990962 2.472479 3.301115
  [8,] 3.248763 4.155510 1.973610 3.654074 2.660320
  
  $cluster
   [1] 2 1 5 5 8 5 5 4 4 6 7 8 5 8 6 2 6 7 8 5 8 5 5 3 5 5 5 2 3 1 4 6 6 8 8 5 1 3
  [39] 4 3 8 3 8 3 5 8 3 3 6 3
  
  $size
  [1]  3  3  9  4 13  6  2 10
  
  Data ==> memory, centroids ==> compute
  
  $nrow
  [1] 50
  
  $ncol
  [1] 5
  
  $iters
  [1] 21
  
  $k
  [1] 8
  
  $centers
           [,1]     [,2]     [,3]     [,4]     [,5]
  [1,] 3.064769 2.934908 2.738242 3.298497 2.844551
  [2,] 3.015320 3.013633 2.770685 2.955266 3.051938
  [3,] 4.513284 3.880610 4.156640 4.325825 3.100727
  [4,] 2.849448 2.974869 2.946936 2.447302 3.327008
  [5,] 2.491785 2.790580 3.414452 1.913792 3.267746
  [6,] 3.096226 2.912256 2.765275 3.344278 2.809726
  [7,] 2.887287 3.006538 2.990962 2.472479 3.301115
  [8,] 3.248763 4.155510 1.973610 3.654074 2.660320
  
  $cluster
   [1] 2 1 5 5 8 5 5 4 4 6 7 8 5 8 6 2 6 7 8 5 8 5 5 3 5 5 5 2 3 1 4 6 6 8 8 5 1 3
  [39] 4 3 8 3 8 3 5 8 3 3 6 3
  
  $size
  [1]  3  3  9  4 13  6  2 10
  
  
   *** caught segfault ***
  address 0x7c, cause 'memory not mapped'
  
  Traceback:
   1: env_has(testthat_env, "edition")
   2: edition_get()
   3: local_test_context()
   4: test_that("data IM compared to same", {    expect_identical(ret1, ret2)})
   5: eval(code, test_env)
   6: eval(code, test_env)
   7: withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error)
   8: doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  11: doTryCatch(return(expr), name, parentenv, handler)
  12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  13: tryCatchList(expr, classes, parentenv, handlers)
  14: tryCatch(withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error), error = handle_fatal,     skip = function(e) {    })
  15: test_code(NULL, exprs, env)
  16: source_file(path, child_env(env), wrap = wrap)
  17: FUN(X[[i]], ...)
  18: lapply(test_paths, test_one_file, env = env, wrap = wrap)
  19: force(code)
  20: doWithOneRestart(return(expr), restart)
  21: withOneRestart(expr, restarts[[1L]])
  22: withRestarts(testthat_abort_reporter = function() NULL, force(code))
  23: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, wrap = wrap))
  24: test_files(test_dir = test_dir, test_package = test_package,     test_paths = test_paths, load_helpers = load_helpers, reporter = reporter,     env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,     wrap = wrap, load_package = load_package)
  25: test_files(test_dir = path, test_paths = test_paths, test_package = package,     reporter = reporter, load_helpers = load_helpers, env = env,     stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,     wrap = wrap, load_package = load_package, parallel = parallel)
  26: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  27: test_check("clusternor")
  An irrecoverable exception occurred. R is aborting now ...
  Segmentation fault