Last updated on 2025-04-23 07:49:50 CEST.
Package | ERROR | NOTE | OK |
---|---|---|---|
sgdGMF | 1 | 2 | 10 |
Current CRAN status: ERROR: 1, NOTE: 2, OK: 10
Version: 1.0
Check: installed package size
Result: NOTE
installed size is 11.2Mb
sub-directories of 1Mb or more:
libs 10.5Mb
Flavors: r-oldrel-macos-arm64, r-oldrel-macos-x86_64
Version: 1.0
Check: tests
Result: ERROR
Running 'testthat.R' [7s]
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(sgdGMF)
Loading required package: ggplot2
Attaching package: 'sgdGMF'
The following object is masked from 'package:stats':
simulate
>
> test_check("sgdGMF")
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 157 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-eigengap.R:17:3'): Rank selecion ───────────────────────────────
Error in `while (tol >= 1) {
j = ju
yreg = lambdas[j:(j + 4)]
xreg = (j + (-1:3))^(2/3)
delta = 2 * abs(stats::cov(yreg, xreg))/stats::var(xreg)
flag = which(-diff(lambdas) >= delta)
ncomp = ifelse(length(flag) == 0, 0, utils::tail(flag[flag <=
maxcomp], 1))
ju = ncomp + 1
tol = abs(ju - j)
iter = iter + 1
if (iter > maxiter)
break
}`: missing value where TRUE/FALSE needed
Backtrace:
▆
1. └─sgdGMF::sgdgmf.rank(...) at test-eigengap.R:17:3
2. └─sgdGMF:::eigengap.onatski(...)
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 157 ]
Error: Test failures
Execution halted
Flavor: r-oldrel-windows-x86_64