Running 'testthat.R' [6s]
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 2 | WARN 0 | SKIP 3 | PASS 0 ]
  
  ══ Skipped tests (3) ═══════════════════════════════════════════════════════════
  • On CRAN (3): 'test-knn_domain_score.R:12:3', 'test-mars_domain_score.R:80:3',
    'test-nn_domain_score.R:80:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-normalized_domain_plot.R:18:3'): `normalized_domain_plot()` plots as expected ──
  Error in `recipes::prep(blueprint$recipe, training = training, fresh = blueprint$fresh, 
      strings_as_factors = blueprint_strings_as_factors(blueprint))`: x The following variables have the wrong attributes: `jittered_log10_imputed_vl_2022` and `jittered_cd_2022`.
  Run `lapply(recipes_ptype(rec), attributes)` to see expected attributes. For `rec` being the name of your recipe.
  Backtrace:
       ▆
    1. ├─vdiffr::expect_doppelganger(...) at test-normalized_domain_plot.R:18:3
    2. │ └─vdiffr (local) writer(fig, testcase, title)
    3. │   └─vdiffr:::print_plot(plot, title)
    4. └─viraldomain::normalized_domain_plot(...)
    5.   ├─applicable::autoplot.apd_pca(...)
    6.   ├─applicable::apd_pca(...)
    7.   └─applicable:::apd_pca.recipe(...)
    8.     ├─hardhat::mold(x, data)
    9.     └─hardhat:::mold.recipe(x, data)
   10.       ├─hardhat::run_mold(blueprint, data = data)
   11.       └─hardhat:::run_mold.default_recipe_blueprint(blueprint, data = data)
   12.         └─hardhat:::mold_recipe_default_process(...)
   13.           ├─recipes::prep(...)
   14.           └─recipes:::prep.recipe(...)
   15.             └─recipes:::check_training_set(training, x, fresh)
   16.               └─recipes::recipes_ptype_validate(...)
   17.                 └─cli::cli_abort(msg, call = call)
   18.                   └─rlang::abort(...)
  ── Error ('test-simple_domain_plot.R:18:3'): `simple_domain_plot()` plots as expected ──
  Error in `recipes::prep(blueprint$recipe, training = training, fresh = blueprint$fresh, 
      strings_as_factors = blueprint_strings_as_factors(blueprint))`: x The following variables have the wrong attributes: `jittered_log10_imputed_vl_2022` and `jittered_cd_2022`.
  Run `lapply(recipes_ptype(rec), attributes)` to see expected attributes. For `rec` being the name of your recipe.
  Backtrace:
       ▆
    1. ├─vdiffr::expect_doppelganger(...) at test-simple_domain_plot.R:18:3
    2. │ └─vdiffr (local) writer(fig, testcase, title)
    3. │   └─vdiffr:::print_plot(plot, title)
    4. └─viraldomain::simple_domain_plot(...)
    5.   ├─applicable::autoplot.apd_pca(...)
    6.   ├─applicable::apd_pca(...)
    7.   └─applicable:::apd_pca.recipe(...)
    8.     ├─hardhat::mold(x, data)
    9.     └─hardhat:::mold.recipe(x, data)
   10.       ├─hardhat::run_mold(blueprint, data = data)
   11.       └─hardhat:::run_mold.default_recipe_blueprint(blueprint, data = data)
   12.         └─hardhat:::mold_recipe_default_process(...)
   13.           ├─recipes::prep(...)
   14.           └─recipes:::prep.recipe(...)
   15.             └─recipes:::check_training_set(training, x, fresh)
   16.               └─recipes::recipes_ptype_validate(...)
   17.                 └─cli::cli_abort(msg, call = call)
   18.                   └─rlang::abort(...)
  
  [ FAIL 2 | WARN 0 | SKIP 3 | PASS 0 ]
  Error: Test failures
  Execution halted