Running ‘testthat.R’ [11s/30s]
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(viralmodels)
  > 
  > test_check("viralmodels")
  -- Attaching core tidyverse packages ------------------------ tidyverse 2.0.0 --
  v dplyr     1.1.4     v readr     2.1.5
  v forcats   1.0.0     v stringr   1.5.1
  v ggplot2   3.5.2     v tibble    3.2.1
  v lubridate 1.9.4     v tidyr     1.3.1
  v purrr     1.0.4     
  -- Conflicts ------------------------------------------ tidyverse_conflicts() --
  x readr::edition_get()   masks testthat::edition_get()
  x dplyr::filter()        masks stats::filter()
  x purrr::is_null()       masks testthat::is_null()
  x dplyr::lag()           masks stats::lag()
  x readr::local_edition() masks testthat::local_edition()
  x dplyr::matches()       masks tidyr::matches(), testthat::matches()
  i Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
  Loading required package: parsnip
  
  Attaching package: 'kernlab'
  
  The following object is masked from 'package:purrr':
  
      cross
  
  The following object is masked from 'package:ggplot2':
  
      alpha
  
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 0 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-viralmodel.R:6:3'): `viralmodel()` works ───────────────────────
  <packageNotFoundError/error/condition>
  Error in `library(kknn)`: there is no package called 'kknn'
  Backtrace:
      ▆
   1. └─base::library(kknn) at test-viralmodel.R:6:3
  ── Error ('test-viralpreds.R:5:3'): viralpreds() works ─────────────────────────
  <packageNotFoundError/error/condition>
  Error in `library(kknn)`: there is no package called 'kknn'
  Backtrace:
      ▆
   1. └─base::library(kknn) at test-viralpreds.R:5:3
  ── Error ('test-viraltab.R:6:3'): viraltab() works ─────────────────────────────
  <packageNotFoundError/error/condition>
  Error in `library(kknn)`: there is no package called 'kknn'
  Backtrace:
      ▆
   1. └─base::library(kknn) at test-viraltab.R:6:3
  ── Error ('test-viralvis.R:6:3'): `viralvis()` plots as expected ───────────────
  <packageNotFoundError/error/condition>
  Error in `library(kknn)`: there is no package called 'kknn'
  Backtrace:
      ▆
   1. └─base::library(kknn) at test-viralvis.R:6:3
  
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 0 ]
  Deleting unused snapshots:
  • viralvis/viralvis.svg
  Error: Test failures
  Execution halted