R Under development (unstable) (2026-07-26 r90304 ucrt) -- "Unsuffered Consequences" Copyright (C) 2026 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library(BCodifSIS) > > n <- 30 > p <- 6 > grid <- seq_len(n) > X <- vapply(seq_len(p), function(j) { + sin(grid / (j + 1)) + cos(grid * j / 9) + }, numeric(n)) > y <- X[, 1] + 0.25 * sin(grid / 4) > > fast <- bcodif_score(X[, 1], y) > slow <- bcodif_score_slow(X[, 1], y) > stopifnot(isTRUE(all.equal(fast, slow, tolerance = 1e-10))) > > fit <- bcodif_sis(X, y, d = 3) > stopifnot(inherits(fit, "bcodif_sis")) > stopifnot(length(fit$ix) == 3) > stopifnot(all(is.finite(fit$scores))) > > qc <- quick_check() > stopifnot(is.list(qc)) > stopifnot(qc$score_difference < 1e-10) > > proc.time() user system elapsed 0.40 0.03 0.42