Running ‘testthat.R’ [22s/22s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(clustree)
  Loading required package: ggraph
  Loading required package: ggplot2
  > 
  > test_check("clustree")
  ── 1. Error: seurat interface works (@test-clustree-overlay.R#25)  ─────────────
  unable to find required package 'Seurat'
  1: expect_is(clustree_overlay(sim_seurat, x_value = "pca1", y_value = "pca2", red_dim = "pca"), 
         c("gg", "ggplot")) at testthat/test-clustree-overlay.R:25
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: clustree_overlay(sim_seurat, x_value = "pca1", y_value = "pca2", red_dim = "pca")
  5: .extendsForS3(structure("seurat", package = "Seurat"))
  6: extends(Class, maybe = FALSE)
  7: getClassDef(class1)
  8: .requirePackage(package)
  9: stop(gettextf("unable to find required package %s", sQuote(package)), domain = NA)
  
  ── 2. Failure: red_dim check works (@test-clustree-overlay.R#53)  ──────────────
  `clustree_overlay(...)` threw an error with unexpected message.
  Expected match: "red_dim must be the name of"
  Actual message: "unable to find required package 'Seurat'"
  
  ── 3. Failure: x_value y_value check works (@test-clustree-overlay.R#65)  ──────
  `clustree_overlay(...)` threw an error with unexpected message.
  Expected match: "No data identified for x_value or y_value"
  Actual message: "unable to find required package 'Seurat'"
  
  ── 4. Failure: x_value y_value check works (@test-clustree-overlay.R#74)  ──────
  `clustree_overlay(...)` threw an error with unexpected message.
  Expected match: "No data identified for x_value or y_value"
  Actual message: "unable to find required package 'Seurat'"
  
  ── 5. Error: seurat interface works (@test-clustree.R#17)  ─────────────────────
  unable to find required package 'Seurat'
  1: expect_is(clustree(sim_seurat), c("gg", "ggplot")) at testthat/test-clustree.R:17
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: clustree(sim_seurat)
  5: .extendsForS3(structure("seurat", package = "Seurat"))
  6: extends(Class, maybe = FALSE)
  7: getClassDef(class1)
  8: .requirePackage(package)
  9: stop(gettextf("unable to find required package %s", sQuote(package)), domain = NA)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 47 SKIPPED: 0 FAILED: 5
  1. Error: seurat interface works (@test-clustree-overlay.R#25) 
  2. Failure: red_dim check works (@test-clustree-overlay.R#53) 
  3. Failure: x_value y_value check works (@test-clustree-overlay.R#65) 
  4. Failure: x_value y_value check works (@test-clustree-overlay.R#74) 
  5. Error: seurat interface works (@test-clustree.R#17) 
  
  Error: testthat unit tests failed
  Execution halted