Running ‘testthat.R’ [12s/27s]
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/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(viraldomain)
  > 
  > test_check("viraldomain")
  
  Attaching package: 'dplyr'
  
  The following object is masked from 'package:testthat':
  
      matches
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  [ FAIL 1 | WARN 0 | SKIP 5 | PASS 0 ]
  
  ══ Skipped tests (5) ═══════════════════════════════════════════════════════════
  • On CRAN (5): 'test-mars_domain_score.R:11:3', 'test-nn_domain_score.R:11:3',
    'test-normalized_domain_plot.R:11:3', 'test-rf_domain_score.R:11:3',
    'test-simple_domain_plot.R:11:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-knn_domain_score.R:11:3'): `knn_domain_score()` works ──────────
  Error in `fit_xy(spec, x = mold$predictors, y = mold$outcomes, case_weights = case_weights, 
      control = control_parsnip)`: Please install the kknn package to use this engine.
  Backtrace:
       ▆
    1. ├─base::print(...)
    2. └─viraldomain::knn_domain_score(...)
    3.   ├─dplyr::bind_cols(...)
    4.   │ └─rlang::list2(...)
    5.   ├─stats::predict(...)
    6.   ├─parsnip::fit(...)
    7.   └─workflows:::fit.workflow(...)
    8.     └─workflows::.fit_model(workflow, control)
    9.       ├─generics::fit(action_model, workflow = workflow, control = control)
   10.       └─workflows:::fit.action_model(...)
   11.         └─workflows:::fit_from_xy(spec, mold, case_weights, control_parsnip)
   12.           ├─generics::fit_xy(...)
   13.           └─parsnip::fit_xy.model_spec(...)
   14.             └─parsnip:::check_installs(object)
   15.               └─cli::cli_abort(...)
   16.                 └─rlang::abort(...)
  
  [ FAIL 1 | WARN 0 | SKIP 5 | PASS 0 ]
  Error: Test failures
  Execution halted