- using R Under development (unstable) (2025-05-15 r88203)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
clang version 20.1.4
flang version 20.1.4
- running under: Fedora Linux 40 (Workstation Edition)
- using session charset: UTF-8
- using option ‘--no-stop-on-test-error’
- checking for file ‘viraldomain/DESCRIPTION’ ... OK
- this is package ‘viraldomain’ version ‘0.0.6’
- package encoding: UTF-8
- 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 whether package ‘viraldomain’ can be installed ... OK
See the install log for details.
- checking installed package size ... OK
- checking package directory ... 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 ... OK
- checking whether the package can be loaded with stated dependencies ... OK
- checking whether the package can be unloaded cleanly ... OK
- checking whether the namespace can be loaded with stated dependencies ... OK
- checking whether the namespace can be unloaded cleanly ... OK
- checking loading without being on the library search path ... 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 ... [5s/14s] OK
- checking Rd files ... 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 ... OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking examples ... OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [12s/34s] ERROR
Running ‘testthat.R’ [12s/32s]
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 ... [7s/23s] OK
- checking HTML version of manual ... OK
- checking for non-standard things in the check directory ... OK
- checking for detritus in the temp directory ... OK
- DONE
Status: 1 ERROR, 1 NOTE