Running ‘testthat.R’ [31s/38s]
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")
  ── 1. Error: factor outcome (@test_umap.R#24)  ─────────────────────────────────
  there is no package called 'RcppAnnoy'
  Backtrace:
    1. recipes::recipe(Species ~ ., data = tr)
   16. embed::step_umap(...)
   17. recipes::prep(., training = tr)
   18. uwot:::uwot(...)
   19. uwot:::data2set(...)
   20. uwot:::x2set(...)
   21. uwot:::x2nn(...)
   22. uwot:::find_nn(...)
   23. uwot:::annoy_nn(...)
   24. uwot:::annoy_build(X, metric = metric, n_trees = n_trees, verbose = verbose)
   29. uwot:::create_ann(metric, nc)
   30. RcppAnnoy::AnnoyEuclidean
   31. base::getExportedValue(pkg, name)
   32. base::asNamespace(ns)
   33. base::getNamespace(ns)
   34. base::loadNamespace(name)
   35. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   36. base:::withOneRestart(expr, restarts[[1L]])
    1. base:::doWithOneRestart(return(expr), restart)
  
  ── 2. Error: numeric outcome (@test_umap.R#67)  ────────────────────────────────
  there is no package called 'RcppAnnoy'
  Backtrace:
    1. recipes::recipe(Sepal.Length ~ ., data = tr[, -5])
   16. embed::step_umap(...)
   17. recipes::prep(., training = tr[, -5])
   18. uwot:::uwot(...)
   19. uwot:::data2set(...)
   20. uwot:::x2set(...)
   21. uwot:::x2nn(...)
   22. uwot:::find_nn(...)
   23. uwot:::annoy_nn(...)
   24. uwot:::annoy_build(X, metric = metric, n_trees = n_trees, verbose = verbose)
   29. uwot:::create_ann(metric, nc)
   30. RcppAnnoy::AnnoyEuclidean
   31. base::getExportedValue(pkg, name)
   32. base::asNamespace(ns)
   33. base::getNamespace(ns)
   34. base::loadNamespace(name)
   35. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   36. base:::withOneRestart(expr, restarts[[1L]])
    1. base:::doWithOneRestart(return(expr), restart)
  
  ── 3. Error: no outcome (@test_umap.R#109)  ────────────────────────────────────
  there is no package called 'RcppAnnoy'
  Backtrace:
    1. recipes::recipe(~., data = tr[, -5])
   16. embed::step_umap(...)
   17. recipes::prep(., training = tr[, -5])
   18. uwot:::uwot(...)
   19. uwot:::data2set(...)
   20. uwot:::x2set(...)
   21. uwot:::x2nn(...)
   22. uwot:::find_nn(...)
   23. uwot:::annoy_nn(...)
   24. uwot:::annoy_build(X, metric = metric, n_trees = n_trees, verbose = verbose)
   29. uwot:::create_ann(metric, nc)
   30. RcppAnnoy::AnnoyEuclidean
   31. base::getExportedValue(pkg, name)
   32. base::asNamespace(ns)
   33. base::getNamespace(ns)
   34. base::loadNamespace(name)
   35. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   36. base:::withOneRestart(expr, restarts[[1L]])
    1. base:::doWithOneRestart(return(expr), restart)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 149 | SKIPPED: 10 | WARNINGS: 0 | FAILED: 3 ]
  1. Error: factor outcome (@test_umap.R#24) 
  2. Error: numeric outcome (@test_umap.R#67) 
  3. Error: no outcome (@test_umap.R#109) 
  
  Error: testthat unit tests failed
  Execution halted