CRAN Package Check Results for Package smimodel

Last updated on 2026-10-24 07:51:04 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.1.3 22.58 217.62 240.20 OK
r-devel-linux-x86_64-debian-gcc 0.1.3 16.03 134.72 150.75 ERROR
r-devel-linux-x86_64-fedora-clang 0.1.3 19.00 181.28 200.28 OK
r-devel-linux-x86_64-fedora-gcc 0.1.3 14.00 167.77 181.77 OK
r-devel-windows-x86_64 0.1.3 27.00 230.00 257.00 OK
r-patched-linux-x86_64 0.1.3 23.96 215.02 238.98 OK
r-release-linux-x86_64 0.1.3 22.09 217.09 239.18 OK
r-release-macos-arm64 0.1.3 6.00 79.00 85.00 OK
r-release-macos-x86_64 0.1.3 16.00 271.00 287.00 OK
r-release-windows-x86_64 0.1.3 25.00 225.00 250.00 OK
r-oldrel-macos-arm64 0.1.3 5.00 65.00 70.00 OK
r-oldrel-macos-x86_64 0.1.3 16.00 269.00 285.00 OK
r-oldrel-windows-x86_64 0.1.3 34.00 301.00 335.00 OK

Check Details

Version: 0.1.3
Check: examples
Result: ERROR Running examples in ‘smimodel-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: augment.gaimFit > ### Title: Augment function for class 'gaimFit' > ### Aliases: augment.gaimFit > > ### ** Examples > > library(dplyr) Attaching package: ‘dplyr’ The following objects are masked from ‘package:stats’: filter, lag The following objects are masked from ‘package:base’: intersect, setdiff, setequal, union > library(tibble) > library(tidyr) > library(tsibble) Attaching package: ‘tsibble’ The following objects are masked from ‘package:base’: intersect, setdiff, union > > # Simulate data > n = 1005 > set.seed(123) > sim_data <- tibble(x_lag_000 = runif(n)) |> + mutate( + # Add x_lags + x_lag = lag_matrix(x_lag_000, 5)) |> + unpack(x_lag, names_sep = "_") |> + mutate( + # Response variable + y = (0.9*x_lag_000 + 0.6*x_lag_001 + 0.45*x_lag_003)^3 + rnorm(n, sd = 0.1), + # Add an index to the data set + inddd = seq(1, n)) |> + drop_na() |> + select(inddd, y, starts_with("x_lag")) |> + # Make the data set a `tsibble` + as_tsibble(index = inddd) > > # Predictors taken as index variables > index.vars <- colnames(sim_data)[3:7] > > # Assign group indices for each predictor > index.ind = c(rep(1, 3), rep(2, 2)) > > # Predictors taken as non-linear variables not entering indices > s.vars = "x_lag_005" > > # Model fitting > gaimModel <- model_gaim(data = sim_data, + yvar = "y", + index.vars = index.vars, + index.ind = index.ind, + s.vars = s.vars) Error in a$specials[[i]] : subscript out of bounds Calls: model_gaim ... smooth.setup -> <Anonymous> -> as.formula -> <Anonymous> -> off Execution halted Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.1.3
Check: tests
Result: ERROR Running ‘testthat.R’ [8s/10s] 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(smimodel) > library(ROI) ROI: R Optimization Infrastructure Registered solver plugins: nlminb. Default solver: auto. > > test_check("smimodel") Fitted Model(s): # A tibble: 1 x 2 key fit <chr> <list> 1 1 <gam> Saving _problems/test-model_gaim-32.R Fitted Model(s): # A tibble: 1 x 2 key fit <chr> <list> 1 1 <ppr.form> [ FAIL 1 | WARN 0 | SKIP 2 | PASS 9 ] ══ Skipped tests (2) ═══════════════════════════════════════════════════════════ • {gurobi} is not installed (2): 'test-greedy_smimodel.R:4:3', 'test-model_smimodel.R:4:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-model_gaim.R:26:3'): tests for model_gaim() ──────────────────── <subscriptOutOfBoundsError/error/condition> Error in `a$specials[[i]]`: subscript out of bounds Backtrace: ▆ 1. ├─sim_data %>% ... at test-model_gaim.R:26:3 2. └─smimodel::model_gaim(...) 3. └─cgaim::cgaim(...) 4. └─cgaim:::smooth.setup(mf, refordata, control$sm_method, control$sm_control) 5. ├─stats::get_all_vars(...) 6. │ └─stats::as.formula(formula) 7. └─stats::delete.response(mt[-(gind - 1)]) 8. └─stats (local) off(a$specials[[i]]) [ FAIL 1 | WARN 0 | SKIP 2 | PASS 9 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-debian-gcc