Skip to content

Commit 5bb920a

Browse files
committed
Fix refund deprecation warnings and stabilize checks
1 parent 0eb6eee commit 5bb920a

9 files changed

Lines changed: 26 additions & 17 deletions

File tree

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Type: Package
22
Package: FDboost
33
Title: Boosting Functional Regression Models
4-
Version: 1.1-1
5-
Date: 2022-09-08
4+
Version: 1.1-4
5+
Date: 2026-03-24
66
Authors@R: c(
77
person("Sarah", "Brockhaus", , "Sarah.Brockhaus@stat.uni-muenchen.de", role = "aut",
88
comment = c(ORCID = "0000-0001-9484-7488")),

NEWS.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# FDboost 1.1-4 (2026-03-24)
2+
3+
## Bug fixes
4+
5+
- Suppressed deprecation warnings from `refund::pffrSim()` in examples to keep checks clean with recent `refund` versions.
6+
- Stabilized `tests/general_tests.R` by forcing serial evaluation (`mc.cores = 1`) to avoid parallel `applyFolds()` crashes on some check platforms.
7+
18
# FDboost 1.1.0 (2022-07-12)
29

310
## Miscellaneous

R/baselearners.R

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ X_bsignal <- function(mf, vary, args) {
585585
#' # model with linear functional effect, use bsignal()
586586
#' # Y(t) = f(t) + \int X1(s)\beta(s,t)ds + eps
587587
#' set.seed(2121)
588-
#' data1 <- pffrSim(scenario = "ff", n = 40)
588+
#' data1 <- suppressWarnings(pffrSim(scenario = "ff", n = 40))
589589
#' data1$X1 <- scale(data1$X1, scale = FALSE)
590590
#' dat_list <- as.list(data1)
591591
#' dat_list$t <- attr(data1, "yindex")
@@ -623,7 +623,7 @@ X_bsignal <- function(mf, vary, args) {
623623
#' mylimits <- function(s, t){
624624
#' (s < t) | (s == t)
625625
#' }
626-
#' data2 <- pffrSim(scenario = "ff", n = 40, limits = mylimits)
626+
#' data2 <- suppressWarnings(pffrSim(scenario = "ff", n = 40, limits = mylimits))
627627
#' data2$X1 <- scale(data2$X1, scale = FALSE)
628628
#' dat2_list <- as.list(data2)
629629
#' dat2_list$t <- attr(data2, "yindex")
@@ -2600,4 +2600,3 @@ brandomc <- function (..., contrasts.arg = "contr.dummy", df = 4) {
26002600
ret
26012601
}
26022602

2603-

R/baselearnersX.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,8 +395,8 @@ X_histx <- function(mf, vary, args) {
395395
#' ## the interaction effect is in this case not necessary
396396
#' n <- 100
397397
#' nygrid <- 35
398-
#' data1 <- pffrSim(scenario = c("int", "ff"), limits = function(s,t){ s <= t },
399-
#' n = n, nygrid = nygrid)
398+
#' data1 <- suppressWarnings(pffrSim(scenario = c("int", "ff"), limits = function(s,t){ s <= t },
399+
#' n = n, nygrid = nygrid))
400400
#' data1$X1 <- scale(data1$X1, scale = FALSE) ## center functional covariate
401401
#' dataList <- as.list(data1)
402402
#' dataList$tvals <- attr(data1, "yindex")

R/bootstrapCIs.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
#'
4848
#' @note Note that parallelization can be achieved by defining
4949
#' the \code{resampling_fun_outer} or \code{_inner} accordingly.
50-
#' See, e.g., \code{\link{cvrisk}} on how to parallelize resampling
50+
#' See, e.g., \code{\link[mboost]{cvrisk}} on how to parallelize resampling
5151
#' functions or the examples below. Also note that by defining
5252
#' a custum inner or outer resampling function the respective
5353
#' argument \code{B_inner} or \code{B_outer} is ignored.
@@ -77,7 +77,7 @@
7777
#' # model with linear functional effect, use bsignal()
7878
#' # Y(t) = f(t) + \int X1(s)\beta(s,t)ds + eps
7979
#' set.seed(2121)
80-
#' data1 <- pffrSim(scenario = "ff", n = 40)
80+
#' data1 <- suppressWarnings(pffrSim(scenario = "ff", n = 40))
8181
#' data1$X1 <- scale(data1$X1, scale = FALSE)
8282
#' dat_list <- as.list(data1)
8383
#' dat_list$t <- attr(data1, "yindex")

man/bhistx.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/bootstrapCI.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/bsignal.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/general_tests.R

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,14 @@ library(gamboostLSS)
1010

1111
if(require(refund)){
1212

13+
old_mc_cores <- getOption("mc.cores")
14+
options(mc.cores = 1L)
15+
on.exit(options(mc.cores = old_mc_cores), add = TRUE)
16+
1317
## simulate a small data set
1418
print("simulate data")
1519
set.seed(230)
16-
pffr_data <- pffrSim(n = 25, nxgrid = 21, nygrid = 19)
20+
pffr_data <- suppressWarnings(pffrSim(n = 25, nxgrid = 21, nygrid = 19))
1721
pffr_data$X1 <- scale(pffr_data$X1, scale = FALSE)
1822

1923
dat <- as.list(pffr_data)
@@ -210,4 +214,3 @@ pred <- predict(fof, newdata = fuelSubset)
210214

211215

212216

213-

0 commit comments

Comments
 (0)