Running ‘testthat.R’ [2s/3s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(coRanking)
  > 
  > test_check("coRanking")
  [ FAIL 17 | WARN 0 | SKIP 0 | PASS 7 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_coranking.R:16:5'): output dimensions ──────────────────────────
  Error in `euclidean_C(X)`: DLL requires the use of native symbols
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test_coranking.R:16:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─base::nrow(coranking(df1, df2, use = "C"))
   5. └─coRanking::coranking(df1, df2, use = "C")
   6.   └─coRanking::rankmatrix(Xi, input = input_Xi, use = use)
   7.     └─coRanking:::euclidean(as.matrix(X), use)
   8.       └─coRanking:::euclidean_C(X)
  ── Error ('test_coranking.R:29:5'): data.frame and matrix ──────────────────────
  Error in `euclidean_C(X)`: DLL requires the use of native symbols
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test_coranking.R:29:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─coRanking::coranking(df1, df2, use = "C")
   5.   └─coRanking::rankmatrix(Xi, input = input_Xi, use = use)
   6.     └─coRanking:::euclidean(as.matrix(X), use)
   7.       └─coRanking:::euclidean_C(X)
  ── Error ('test_coranking.R:36:5'): equal data results in eye*nrow ─────────────
  Error in `euclidean_C(X)`: DLL requires the use of native symbols
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test_coranking.R:36:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─coRanking::coranking(df2, df2, use = "C")
   5.   └─coRanking::rankmatrix(Xi, input = input_Xi, use = use)
   6.     └─coRanking:::euclidean(as.matrix(X), use)
   7.       └─coRanking:::euclidean_C(X)
  ── Error ('test_coranking.R:57:5'): changing arguments transposes results ──────
  Error in `euclidean_C(X)`: DLL requires the use of native symbols
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test_coranking.R:57:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─coRanking::coranking(df1, df2, use = "C")
   5.   └─coRanking::rankmatrix(Xi, input = input_Xi, use = use)
   6.     └─coRanking:::euclidean(as.matrix(X), use)
   7.       └─coRanking:::euclidean_C(X)
  ── Error ('test_coranking.R:65:5'): C and R backend equal ──────────────────────
  Error in `euclidean_C(X)`: DLL requires the use of native symbols
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test_coranking.R:65:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─coRanking::coranking(df1, df2, use = "C")
   5.   └─coRanking::rankmatrix(Xi, input = input_Xi, use = use)
   6.     └─coRanking:::euclidean(as.matrix(X), use)
   7.       └─coRanking:::euclidean_C(X)
  ── Failure ('test_coranking.R:77:5'): errors ───────────────────────────────────
  `coranking(df1, df3, use = "C")` threw an error with unexpected message.
  Expected match: "double"
  Actual message: "DLL requires the use of native symbols"
  Backtrace:
      ▆
   1. ├─testthat::expect_error(coranking(df1, df3, use = "C"), "double") at test_coranking.R:77:4
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─coRanking::coranking(df1, df3, use = "C")
   7.   └─coRanking::rankmatrix(Xi, input = input_Xi, use = use)
   8.     └─coRanking:::euclidean(as.matrix(X), use)
   9.       └─coRanking:::euclidean_C(X)
  ── Failure ('test_coranking.R:81:5'): errors ───────────────────────────────────
  `coranking(df1, df3, use = "C")` threw an error with unexpected message.
  Expected match: "double"
  Actual message: "DLL requires the use of native symbols"
  Backtrace:
      ▆
   1. ├─testthat::expect_error(coranking(df1, df3, use = "C"), "double") at test_coranking.R:81:4
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─coRanking::coranking(df1, df3, use = "C")
   7.   └─coRanking::rankmatrix(Xi, input = input_Xi, use = use)
   8.     └─coRanking:::euclidean(as.matrix(X), use)
   9.       └─coRanking:::euclidean_C(X)
  ── Error ('test_coranking.R:90:5'): larger data ────────────────────────────────
  Error in `euclidean_C(X)`: DLL requires the use of native symbols
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test_coranking.R:90:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─coRanking::coranking(m3, m4, use = "C")
   5.   └─coRanking::rankmatrix(Xi, input = input_Xi, use = use)
   6.     └─coRanking:::euclidean(as.matrix(X), use)
   7.       └─coRanking:::euclidean_C(X)
  ── Error ('test_coranking.R:95:3'): dist object ────────────────────────────────
  Error in `rankmatrix_C(dX)`: DLL requires the use of native symbols
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test_coranking.R:95:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─coRanking::coranking(dist(df1), df1, input_Xi = "dist", input_X = "data")
   5.   └─coRanking::rankmatrix(Xi, input = input_Xi, use = use)
   6.     └─coRanking:::rankmatrix_C(dX)
  ── Error ('test_euclidean.R:18:5'): output dimensions ──────────────────────────
  Error in `euclidean_C(X)`: DLL requires the use of native symbols
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test_euclidean.R:18:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─base::nrow(coRanking:::euclidean(df1, use = "C"))
   5. └─coRanking:::euclidean(df1, use = "C")
   6.   └─coRanking:::euclidean_C(X)
  ── Error ('test_euclidean.R:29:5'): data.frame and matrix ──────────────────────
  Error in `euclidean_C(X)`: DLL requires the use of native symbols
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test_euclidean.R:29:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─coRanking:::euclidean(df1, use = "C")
   5.   └─coRanking:::euclidean_C(X)
  ── Error ('test_euclidean.R:40:5'): C and R backend equal ──────────────────────
  Error in `euclidean_C(X)`: DLL requires the use of native symbols
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test_euclidean.R:40:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─coRanking:::euclidean(df1, use = "C")
   5.   └─coRanking:::euclidean_C(X)
  ── Error ('test_rankmatrix.R:16:5'): output dimensions ─────────────────────────
  Error in `euclidean_C(X)`: DLL requires the use of native symbols
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(nrow(rankmatrix(df1, use = "C")), nrow(df1)) at test_rankmatrix.R:16:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─base::nrow(rankmatrix(df1, use = "C"))
   5. └─coRanking::rankmatrix(df1, use = "C")
   6.   └─coRanking:::euclidean(as.matrix(X), use)
   7.     └─coRanking:::euclidean_C(X)
  ── Error ('test_rankmatrix.R:29:5'): data.frame and matrix ─────────────────────
  Error in `euclidean_C(X)`: DLL requires the use of native symbols
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test_rankmatrix.R:29:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─coRanking::rankmatrix(df1, use = "C")
   5.   └─coRanking:::euclidean(as.matrix(X), use)
   6.     └─coRanking:::euclidean_C(X)
  ── Error ('test_rankmatrix.R:36:5'): C and R backend equal ─────────────────────
  Error in `euclidean_C(X)`: DLL requires the use of native symbols
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test_rankmatrix.R:36:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─coRanking::rankmatrix(df1, use = "C")
   5.   └─coRanking:::euclidean(as.matrix(X), use)
   6.     └─coRanking:::euclidean_C(X)
  ── Error ('test_rankmatrix.R:67:5'): offdiagonal zeros ─────────────────────────
  Error in `rankmatrix_C(dX)`: DLL requires the use of native symbols
  Backtrace:
      ▆
   1. ├─testthat::expect_warning(rankmatrix(d2, input = "dist")) at test_rankmatrix.R:67:4
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─coRanking::rankmatrix(d2, input = "dist")
   7.   └─coRanking:::rankmatrix_C(dX)
  ── Error ('test_rnx.R:8:1'): (code run outside of `test_that()`) ───────────────
  Error in `euclidean_C(X)`: DLL requires the use of native symbols
  Backtrace:
      ▆
   1. └─coRanking::coranking(df1, df2) at test_rnx.R:8:0
   2.   └─coRanking::rankmatrix(Xi, input = input_Xi, use = use)
   3.     └─coRanking:::euclidean(as.matrix(X), use)
   4.       └─coRanking:::euclidean_C(X)
  
  [ FAIL 17 | WARN 0 | SKIP 0 | PASS 7 ]
  Error: Test failures
  Execution halted