- using R version 4.4.0 (2024-04-24)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-13 (Debian 13.2.0-24) 13.2.0
GNU Fortran (Debian 13.2.0-24) 13.2.0
- running under: Debian GNU/Linux trixie/sid
- using session charset: UTF-8
- checking for file ‘bnpsd/DESCRIPTION’ ... OK
- this is package ‘bnpsd’ version ‘1.3.13’
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... OK
- 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 ‘bnpsd’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... OK
- checking ‘build’ directory ... OK
- checking DESCRIPTION meta-information ... OK
- 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/1s] 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 ... [8s/9s] OK
- checking Rd files ... [1s/1s] 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 installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [2s/2s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [9s/11s] ERROR
Running ‘testthat.R’ [9s/10s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(bnpsd)
>
> test_check('bnpsd')
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 798 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test_bnpsd.R:2633:9'): undiff_af works ──────────────────────────────
Error in `undiff_af(p = p, kinship_mean = kinship_mean, distr = distr,
alpha = alpha)`: Output variance (0.0833230873827293) is smaller than mixing variance (0.0833333333333333)! This violates model assumptions and can result in imaginary weights. This can be fixed by either reducing `kinship_mean` (to increase output variance) or by picking a mixing distribution with a lower variance than the desired output variance.
Backtrace:
▆
1. └─bnpsd (local) test_undiff_af_generic(p2, F2, distr = "uniform") at test_bnpsd.R:2674:5
2. ├─testthat::expect_silent(...) at test_bnpsd.R:2633:9
3. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
4. │ ├─testthat (local) .capture(...)
5. │ │ ├─withr::with_output_sink(...)
6. │ │ │ └─base::force(code)
7. │ │ ├─base::withCallingHandlers(...)
8. │ │ └─base::withVisible(code)
9. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
10. └─bnpsd::undiff_af(...)
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 798 ]
Error: Test failures
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [10s/17s] OK
- checking PDF version of manual ... [8s/11s] OK
- checking HTML version of manual ... [2s/3s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR