Running ‘testthat.R’ [12s/20s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(ECoL)
  > 
  > test_check("ECoL")
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 97 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_complexity.R:27:3'): regression.result ─────────────────────────
  Error in `get.knnx(train, test, k, algorithm)`: DLL requires the use of native symbols
  Backtrace:
       ▆
    1. ├─ECoL::complexity(speed ~ ., cars) at test_complexity.R:27:2
    2. └─ECoL:::complexity.formula(speed ~ ., cars)
    3.   └─ECoL:::complexity.default(...)
    4.     ├─base::unlist(...)
    5.     └─base::sapply(...)
    6.       └─base::lapply(X = X, FUN = FUN, ...)
    7.         └─ECoL (local) FUN(X[[i]], ...)
    8.           ├─base::do.call(group, list(x = x, y = y, summary = summary, ...))
    9.           ├─ECoL::smoothness(x = `<df[,1]>`, y = `<dbl>`, summary = `<chr>`)
   10.           └─ECoL:::smoothness.default(x = `<df[,1]>`, y = `<dbl>`, summary = `<chr>`)
   11.             └─base::sapply(...)
   12.               └─base::lapply(X = X, FUN = FUN, ...)
   13.                 └─ECoL (local) FUN(X[[i]], ...)
   14.                   ├─base::eval(call(paste("r", f, sep = "."), d = d, x = x, y = y))
   15.                   │ └─base::eval(call(paste("r", f, sep = "."), d = d, x = x, y = y))
   16.                   └─ECoL:::r.S4(d = `<dbl[,50]>`, x = `<df[,1]>`, y = `<dbl>`)
   17.                     └─FNN::knn.reg(x, test[, -ncol(test), drop = FALSE], y, k = 1)
   18.                       └─FNN::get.knnx(train, test, k, algorithm)
  ── Error ('test_smoothness.R:15:3'): regression.result ─────────────────────────
  Error in `get.knnx(train, test, k, algorithm)`: DLL requires the use of native symbols
  Backtrace:
       ▆
    1. ├─ECoL::smoothness(speed ~ ., cars, measures = "S4", summary = "mean") at test_smoothness.R:15:2
    2. └─ECoL:::smoothness.formula(speed ~ ., cars, measures = "S4", summary = "mean")
    3.   └─ECoL:::smoothness.default(...)
    4.     └─base::sapply(...)
    5.       └─base::lapply(X = X, FUN = FUN, ...)
    6.         └─ECoL (local) FUN(X[[i]], ...)
    7.           ├─base::eval(call(paste("r", f, sep = "."), d = d, x = x, y = y))
    8.           │ └─base::eval(call(paste("r", f, sep = "."), d = d, x = x, y = y))
    9.           └─ECoL:::r.S4(d = `<dbl[,50]>`, x = `<df[,1]>`, y = `<dbl>`)
   10.             └─FNN::knn.reg(x, test[, -ncol(test), drop = FALSE], y, k = 1)
   11.               └─FNN::get.knnx(train, test, k, algorithm)
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 97 ]
  Error: Test failures
  Execution halted