Running 'testthat.R' [12s/13s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(embed)
  Loading required package: recipes
  Loading required package: 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
  
  
  Attaching package: 'recipes'
  
  The following object is masked from 'package:stats':
  
      step
  
  > 
  > test_check(package = "embed")
  
   *** caught segfault ***
  address 0x7f0159a4fa08, cause 'memory not mapped'
  
  Traceback:
   1: RcppParallel::setThreadOptions(numThreads = n_threads)
   2: uwot(X = X, n_neighbors = n_neighbors, n_components = n_components,     metric = metric, n_epochs = n_epochs, alpha = learning_rate,     scale = scale, init = init, init_sdev = init_sdev, spread = spread,     min_dist = min_dist, set_op_mix_ratio = set_op_mix_ratio,     local_connectivity = local_connectivity, bandwidth = bandwidth,     gamma = repulsion_strength, negative_sample_rate = negative_sample_rate,     a = a, b = b, nn_method = nn_method, n_trees = n_trees, search_k = search_k,     method = "umap", approx_pow = approx_pow, n_threads = n_threads,     n_sgd_threads = n_sgd_threads, grain_size = grain_size, y = y,     target_n_neighbors = target_n_neighbors, target_weight = target_weight,     target_metric = target_metric, pca = pca, pca_center = pca_center,     pcg_rand = pcg_rand, fast_sgd = fast_sgd, ret_model = ret_model,     ret_nn = ret_nn, tmpdir = tempdir(), verbose = verbose)
   3: uwot::umap(X = tr[, 1:4], y = tr$Species, n_neighbors = 15, n_components = 2,     learning_rate = 1, min_dist = 0.01, verbose = FALSE, n_threads = 1,     ret_model = TRUE)
   4: with_preserve_seed({    set.seed(seed)    code})
   5: withr::with_seed(supervised$steps[[1]]$seed[1], uwot::umap(X = tr[,     1:4], y = tr$Species, n_neighbors = 15, n_components = 2,     learning_rate = 1, min_dist = 0.01, verbose = FALSE, n_threads = 1,     ret_model = TRUE))
   6: eval(code, test_env)
   7: eval(code, test_env)
   8: 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)
   9: doTryCatch(return(expr), name, parentenv, handler)
  10: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  11: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  12: doTryCatch(return(expr), name, parentenv, handler)
  13: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  14: tryCatchList(expr, classes, parentenv, handlers)
  15: 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) {    })
  16: test_code(desc, code, env = parent.frame())
  17: test_that("factor outcome", {    set.seed(11)    supervised <- recipe(Species ~ ., data = tr) %>% step_umap(all_predictors(),         outcome = vars(Species), num_comp = 2) %>% prep(training = tr)    direct_mod <- withr::with_seed(supervised$steps[[1]]$seed[1],         uwot::umap(X = tr[, 1:4], y = tr$Species, n_neighbors = 15,             n_components = 2, learning_rate = 1, min_dist = 0.01,             verbose = FALSE, n_threads = 1, ret_model = TRUE))    expect_equal(direct_mod$embedding, supervised$steps[[1]]$object$embedding)    direct_pred <- withr::with_seed(supervised$steps[[1]]$seed[2],         uwot::umap_transform(model = direct_mod, X = te[, 1:4]))    colnames(direct_pred) <- paste0("umap_", 1:2)    expect_equal(direct_pred, bake(supervised, new_data = te,         composition = "matrix", all_predictors()))})
  18: eval(code, test_env)
  19: eval(code, test_env)
  20: 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)
  21: doTryCatch(return(expr), name, parentenv, handler)
  22: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  23: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  24: doTryCatch(return(expr), name, parentenv, handler)
  25: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  26: tryCatchList(expr, classes, parentenv, handlers)
  27: 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) {    })
  28: test_code(NULL, exprs, env)
  29: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
  30: force(code)
  31: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,     {        reporter$start_file(basename(path))        lister$start_file(basename(path))        source_file(path, new.env(parent = env), chdir = TRUE,             wrap = wrap)        reporter$.end_context()        reporter$end_file()    })
  32: FUN(X[[i]], ...)
  33: lapply(paths, test_file, env = env, reporter = current_reporter,     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
  34: force(code)
  35: with_reporter(reporter = current_reporter, results <- lapply(paths,     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,     load_helpers = FALSE, wrap = wrap))
  36: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  37: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,     wrap = wrap)
  38: test_package_dir(package = package, test_path = test_path, filter = filter,     reporter = reporter, ..., stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  39: test_check(package = "embed")
  An irrecoverable exception occurred. R is aborting now ...
  Segmentation fault