Running ‘testthat.R’ [328s/257s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(waywiser)
  > 
  > test_check("waywiser")
  Starting 2 test processes
  [ FAIL 8 | WARN 0 | SKIP 56 | PASS 192 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (56)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-area_of_applicability.R:24:3'): `ww_area_of_applicability` is properly classed ──
  Error in `get.knnx(data, query, k, algorithm)`: DLL requires the use of native symbols
  Backtrace:
      ▆
   1. ├─waywiser::ww_area_of_applicability(y ~ ., train, test, importance) at test-area_of_applicability.R:24:2
   2. └─waywiser:::ww_area_of_applicability.formula(...)
   3.   └─waywiser:::create_aoa(...)
   4.     └─waywiser:::calc_di(aoa$transformed_training, aoa$testing, aoa$d_bar)
   5.       └─FNN::knnx.dist(training, testing, 1)
   6.         └─FNN::get.knnx(data, query, k, algorithm)
  ── Error ('test-area_of_applicability.R:38:3'): `ww_area_of_applicability` finds 0 distance between identical data ──
  Error in `get.knnx(data, query, k, algorithm)`: DLL requires the use of native symbols
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-area_of_applicability.R:38:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─base::suppressWarnings(...)
    5. │ └─base::withCallingHandlers(...)
    6. ├─waywiser::ww_area_of_applicability(y ~ ., train, train, importance)
    7. └─waywiser:::ww_area_of_applicability.formula(...)
    8.   └─waywiser:::create_aoa(...)
    9.     └─waywiser:::calc_di(aoa$transformed_training, aoa$testing, aoa$d_bar)
   10.       └─FNN::knnx.dist(training, testing, 1)
   11.         └─FNN::get.knnx(data, query, k, algorithm)
  ── Failure ('test-area_of_applicability.R:48:3'): `ww_area_of_applicability` works with or without a testing set ──
  `ww_area_of_applicability(y ~ ., train, test, importance)` threw an unexpected error.
  Message: DLL requires the use of native symbols
  Class:   simpleError/error/condition
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-area_of_applicability.R:48:2
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. ├─waywiser::ww_area_of_applicability(y ~ ., train, test, importance)
    8. └─waywiser:::ww_area_of_applicability.formula(...)
    9.   └─waywiser:::create_aoa(...)
   10.     └─waywiser:::calc_di(aoa$transformed_training, aoa$testing, aoa$d_bar)
   11.       └─FNN::knnx.dist(training, testing, 1)
   12.         └─FNN::get.knnx(data, query, k, algorithm)
  ── Failure ('test-area_of_applicability.R:53:3'): `ww_area_of_applicability` works with or without a testing set ──
  `ww_area_of_applicability(y ~ ., train, importance = importance)` threw an unexpected error.
  Message: DLL requires the use of native symbols
  Class:   simpleError/error/condition
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-area_of_applicability.R:53:2
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. ├─waywiser::ww_area_of_applicability(y ~ ., train, importance = importance)
    8. └─waywiser:::ww_area_of_applicability.formula(y ~ ., train, importance = importance)
    9.   └─waywiser:::create_aoa(...)
   10.     └─waywiser:::calc_di(aoa$transformed_training, aoa$testing, aoa$d_bar)
   11.       └─FNN::knn.dist(training, 1)
   12.         └─FNN::get.knn(data, k, algorithm)
  ── Error ('test-area_of_applicability.R:60:3'): `ww_area_of_applicability` methods are equivalent ──
  Error in `get.knnx(data, query, k, algorithm)`: DLL requires the use of native symbols
  Backtrace:
      ▆
   1. ├─waywiser::ww_area_of_applicability(y ~ ., train, test, importance) at test-area_of_applicability.R:60:2
   2. └─waywiser:::ww_area_of_applicability.formula(...)
   3.   └─waywiser:::create_aoa(...)
   4.     └─waywiser:::calc_di(aoa$transformed_training, aoa$testing, aoa$d_bar)
   5.       └─FNN::knnx.dist(training, testing, 1)
   6.         └─FNN::get.knnx(data, query, k, algorithm)
  ── Error ('test-area_of_applicability.R:118:3'): `ww_area_of_applicability` can handle different column orders ──
  Error in `get.knnx(data, query, k, algorithm)`: DLL requires the use of native symbols
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test-area_of_applicability.R:118:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─waywiser::ww_area_of_applicability(train[2:11], test[2:11], importance)
   5. └─waywiser:::ww_area_of_applicability.data.frame(...)
   6.   └─waywiser:::create_aoa(training, testing, importance, ..., na_rm = na_rm)
   7.     └─waywiser:::calc_di(aoa$transformed_training, aoa$testing, aoa$d_bar)
   8.       └─FNN::knnx.dist(training, testing, 1)
   9.         └─FNN::get.knnx(data, query, k, algorithm)
  ── Error ('test-area_of_applicability.R:248:1'): (code run outside of `test_that()`) ──
  Error in `get.knnx(data, query, k, algorithm)`: DLL requires the use of native symbols
  Backtrace:
      ▆
   1. ├─waywiser::ww_area_of_applicability(y ~ ., train, test, importance) at test-area_of_applicability.R:248:0
   2. └─waywiser:::ww_area_of_applicability.formula(...)
   3.   └─waywiser:::create_aoa(...)
   4.     └─waywiser:::calc_di(aoa$transformed_training, aoa$testing, aoa$d_bar)
   5.       └─FNN::knnx.dist(training, testing, 1)
   6.         └─FNN::get.knnx(data, query, k, algorithm)
  ── Error ('test-srr-ww_area_of_applicability.R:234:3'): other generic srr standards ──
  Error in `get.knnx(data, query, k, algorithm)`: DLL requires the use of native symbols
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test-srr-ww_area_of_applicability.R:234:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─waywiser::ww_area_of_applicability(...)
   5. └─waywiser:::ww_area_of_applicability.formula(...)
   6.   └─waywiser:::create_aoa(...)
   7.     └─waywiser:::calc_di(aoa$transformed_training, aoa$testing, aoa$d_bar)
   8.       └─FNN::knnx.dist(training, testing, 1)
   9.         └─FNN::get.knnx(data, query, k, algorithm)
  
  [ FAIL 8 | WARN 0 | SKIP 56 | PASS 192 ]
  Error: Test failures
  Execution halted