CRAN Package Check Results for Package gam

Last updated on 2026-10-24 09:50:51 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.22-7 17.51 45.15 62.66 OK
r-devel-linux-x86_64-debian-gcc 1.22-7 10.70 34.08 44.78 ERROR
r-devel-linux-x86_64-fedora-clang 1.22-7 10.00 29.51 39.51 OK
r-devel-linux-x86_64-fedora-gcc 1.22-7 10.00 29.34 39.34 OK
r-devel-windows-x86_64 1.22-7 26.00 139.00 165.00 OK
r-patched-linux-x86_64 1.22-7 14.96 37.71 52.67 OK
r-release-linux-x86_64 1.22-7 13.93 37.27 51.20 OK
r-release-macos-arm64 1.22-7 5.00 11.00 16.00 OK
r-release-macos-x86_64 1.22-7 13.00 38.00 51.00 OK
r-release-windows-x86_64 1.22-7 24.00 63.00 87.00 OK
r-oldrel-macos-arm64 1.22-7 5.00 12.00 17.00 OK
r-oldrel-macos-x86_64 1.22-7 14.00 94.00 108.00 OK
r-oldrel-windows-x86_64 1.22-7 28.00 70.00 98.00 OK

Check Details

Version: 1.22-7
Check: examples
Result: ERROR Running examples in ‘gam-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: gam > ### Title: Fitting Generalized Additive Models > ### Aliases: gam gam.fit > ### Keywords: models nonparametric regression smooth > > ### ** Examples > > > data(kyphosis) > gam(Kyphosis ~ s(Age,4) + Number, family = binomial, data=kyphosis, + trace=TRUE) GAM s.wam loop 1: deviance = 66.42095 GAM s.wam loop 2: deviance = 63.77252 GAM s.wam loop 3: deviance = 63.25199 GAM s.wam loop 4: deviance = 63.13399 GAM s.wam loop 5: deviance = 63.11016 GAM s.wam loop 6: deviance = 63.10748 GAM s.wam loop 7: deviance = 63.10727 GAM s.wam loop 8: deviance = 63.10725 GAM s.wam loop 9: deviance = 63.10725 Call: gam(formula = Kyphosis ~ s(Age, 4) + Number, family = binomial, data = kyphosis, trace = TRUE) Degrees of Freedom: 80 total; 75.00002 Residual Residual Deviance: 63.10725 > data(airquality) > gam(Ozone^(1/3) ~ lo(Solar.R) + lo(Wind, Temp), data=airquality, na=na.gam.replace) Warning in na.action(mf) : 37 observations omitted due to missing values in the response Call: gam(formula = Ozone^(1/3) ~ lo(Solar.R) + lo(Wind, Temp), data = airquality, na.action = na.gam.replace) Degrees of Freedom: 115 total; 102.6679 Residual Residual Deviance: 20.05229 > gam(Kyphosis ~ poly(Age,2) + s(Start), data=kyphosis, family=binomial, subset=Number>2) Call: gam(formula = Kyphosis ~ poly(Age, 2) + s(Start), family = binomial, data = kyphosis, subset = Number > 2) Degrees of Freedom: 68 total; 61.99976 Residual Residual Deviance: 44.5635 > data(gam.data) > Gam.object <- gam(y ~ s(x,6) + z,data=gam.data) > summary(Gam.object) Call: gam(formula = y ~ s(x, 6) + z, data = gam.data) Deviance Residuals: Min 1Q Median 3Q Max -0.59177 -0.18050 0.01291 0.23941 0.51412 (Dispersion Parameter for gaussian family taken to be 0.0823) Null Deviance: 57.7496 on 99 degrees of freedom Residual Deviance: 7.5745 on 92.0003 degrees of freedom AIC: 43.7495 Number of Local Scoring Iterations: NA Anova for Parametric Effects Df Sum Sq Mean Sq F value Pr(>F) s(x, 6) 1 38.210 38.210 464.0987 <2e-16 *** z 1 0.084 0.084 1.0247 0.3141 Residuals 92 7.575 0.082 --- Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 Anova for Nonparametric Effects Npar Df Npar F Pr(F) (Intercept) s(x, 6) 5 28.697 < 2.2e-16 *** z --- Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 > plot(Gam.object,se=TRUE) > data(gam.newdata) > predict(Gam.object,type="terms",newdata=gam.newdata) Error in a$specials[[i]] : subscript out of bounds Calls: predict ... predict.glm -> predict.lm -> delete.response -> off Execution halted Flavor: r-devel-linux-x86_64-debian-gcc

Version: 1.22-7
Check: tests
Result: ERROR Running ‘testthat.R’ [1s/1s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(gam) Loading required package: splines Loading required package: foreach Loaded gam 1.22-7 > > test_check("gam") Start: y ~ s(x, 6) + z; AIC= 43.7495 Step:1 y ~ s(x, 6) ; AIC= 42.6681 Saving _problems/test_example-16.R [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test_example.R:16:1'): (code run outside of `test_that()`) ────────── <subscriptOutOfBoundsError/error/condition> Error in `a$specials[[i]]`: subscript out of bounds Backtrace: ▆ 1. ├─stats::predict(Gam.object, type = "terms", newdata = gam.newdata) at test_example.R:16:1 2. └─gam::predict.Gam(Gam.object, type = "terms", newdata = gam.newdata) 3. └─gam::newdata.predict.Gam(...) 4. └─stats::predict.glm(...) 5. └─stats::predict.lm(...) 6. └─stats::delete.response(tt) 7. └─stats (local) off(a$specials[[i]]) [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-debian-gcc