Running ‘testthat.R’ [6s/7s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(funrar)
  > 
  > test_check("funrar")
  Only numeric traits provided, consider using euclidean distance.
  Only numeric traits provided, consider using euclidean distance.
  Only numeric traits provided, consider using euclidean distance.
  Only numeric traits provided, consider using euclidean distance.
  'as(<matrix>, "dgeMatrix")' is deprecated.
  Use 'as(as(as(., "dMatrix"), "generalMatrix"), "unpackedMatrix")' instead.
  See help("Deprecated") and help("Matrix-deprecated").
  No abundance column provided, computing Di without it
  Distance matrix bigger than site-species matrix
  Taking subset of distance matrix
  More species in distance matrix than in community data.frame
  Taking subset of distance matrix
  More species in distance matrix than in community data.frame
  Taking subset of distance matrix
  No abundance column provided, computing Di without it
  More species in distance matrix than in community data.frame
  Taking subset of distance matrix
  No abundance column provided, computing Di without it
  No abundance column provided, computing Di without it
  No abundance column provided, computing Di without it
  No abundance column provided, computing Di without it
  No abundance column provided, computing Di without it
  No abundance column provided, computing Di without it
  No abundance column provided, computing Di without it
  No abundance column provided, computing Di without it
  Only numeric traits provided, consider using euclidean distance.
  Only numeric traits provided, consider using euclidean distance.
  Only numeric traits provided, consider using euclidean distance.
  More species in distance matrix than in community data.frame
  Taking subset of distance matrix
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 276 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-tidy_matrix.R:145:3'): Conversion from tidy data.frame to sparse & dense matrices ──
  Error in `stack_to_matrix(com_df, "species", "site", sparse = TRUE)`: The tidytext package need to be installed to get a sparse matrix
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test-tidy_matrix.R:145:3
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─funrar::stack_to_matrix(com_df, "species", "site", sparse = TRUE)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 276 ]
  Error: Test failures
  Execution halted