- using R Under development (unstable) (2025-05-13 r88200)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
Debian clang version 19.1.7 (3)
Debian flang-new version 19.1.7 (3)
- running under: Debian GNU/Linux trixie/sid
- using session charset: UTF-8
- checking for file ‘viraldomain/DESCRIPTION’ ... OK
- this is package ‘viraldomain’ version ‘0.0.6’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [1s/2s] OK
- checking package namespace information ... OK
- checking package dependencies ... INFO
Package suggested but not available for checking: ‘kknn’
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking serialization versions ... OK
- checking whether package ‘viraldomain’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... OK
- checking DESCRIPTION meta-information ... NOTE
Missing dependency on R >= 4.1.0 because package code uses the pipe
|> or function shorthand \(...) syntax added in R 4.1.0.
File(s) using such syntax:
‘knn_domain_score.R’ ‘knn_domain_score.Rd’ ‘mars_domain_score.R’
‘mars_domain_score.Rd’ ‘nn_domain_score.R’ ‘nn_domain_score.Rd’
‘normalized_domain_plot.R’ ‘normalized_domain_plot.Rd’
‘rf_domain_score.R’ ‘simple_domain_plot.R’ ‘simple_domain_plot.Rd’
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [0s/0s] OK
- checking whether the package can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the package can be unloaded cleanly ... [0s/0s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the namespace can be unloaded cleanly ... [0s/0s] OK
- checking loading without being on the library search path ... [0s/0s] OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [3s/5s] OK
- checking Rd files ... [0s/0s] OK
- checking Rd metadata ... OK
- checking Rd line widths ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking contents of ‘data’ directory ... OK
- checking data for non-ASCII characters ... [0s/0s] OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking examples ... [1s/2s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [8s/10s] ERROR
Running ‘testthat.R’ [7s/9s]
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
- checking PDF version of manual ... [4s/5s] OK
- checking HTML version of manual ... [0s/1s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR, 1 NOTE