Running 'testthat.R' [22s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > Sys.setenv("R_TESTS" = "")
  > 
  > library(testthat)
  > library(cytominer)
  
  Attaching package: 'cytominer'
  
  The following object is masked from 'package:stats':
  
      aggregate
  
  The following object is masked from 'package:base':
  
      transform
  
  > 
  > test_check("cytominer")
  -- 1. Error: `correlation_threshold` selects variables that are not highly corre
  Function found when exporting methods from the namespace 'dimRed' which is not S4 generic: 'nrow'
  1: expect_equal(correlation_threshold(variables = c("x", "y", "z"), sample = data %>% 
         dplyr::collect()), c("z")) at testthat/test-correlation_threshold.R:15
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: correlation_threshold(variables = c("x", "y", "z"), sample = data %>% dplyr::collect())
  5: sample %>% dplyr::select_(.dots = variables) %>% cor(method = method) %>% caret::findCorrelation(cutoff = cutoff)
  6: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
  7: eval(quote(`_fseq`(`_lhs`)), env, env)
  8: eval(quote(`_fseq`(`_lhs`)), env, env)
  9: `_fseq`(`_lhs`)
  10: freduce(value, `_function_list`)
  ...
  15: asNamespace(ns)
  16: getNamespace(ns)
  17: loadNamespace(name)
  18: namespaceImportFrom(ns, loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]), 
         i[[2L]], from = package)
  19: asNamespace(ns)
  20: loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
  21: namespaceImportFrom(ns, loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]), 
         i[[2L]], from = package)
  22: asNamespace(ns)
  23: loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
  24: stop(sprintf(msg, sQuote(package), paste(sQuote(bad), collapse = ", ")), domain = NA, 
         call. = FALSE)
  
  == testthat results  ===========================================================
  OK: 71 SKIPPED: 2 FAILED: 1
  1. Error: `correlation_threshold` selects variables that are not highly correlated (@test-correlation_threshold.R#15) 
  
  Error: testthat unit tests failed
  Execution halted