- using R Under development (unstable) (2024-03-27 r86216)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
clang version 18.1.2
flang-new version 18.1.2
- running under: Fedora Linux 36 (Workstation Edition)
- using session charset: UTF-8
- using option ‘--no-stop-on-test-error’
- checking for file ‘cgaim/DESCRIPTION’ ... OK
- this is package ‘cgaim’ version ‘1.0.0’
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘cgaim’ can be installed ... [17s/45s] OK
See the install log for details.
- checking installed package size ... OK
- checking package directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [4s/11s] OK
- checking whether the package can be loaded with stated dependencies ... OK
- checking whether the package can be unloaded cleanly ... OK
- checking whether the namespace can be loaded with stated dependencies ... OK
- checking whether the namespace can be unloaded cleanly ... [4s/11s] OK
- checking loading without being on the library search path ... OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [27s/70s] OK
- checking Rd files ... OK
- checking Rd metadata ... OK
- checking Rd line widths ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking examples ... [6s/14s] ERROR
Running examples in ‘cgaim-Ex.R’ failed
The error most likely occurred in:
> ### Name: boot.cgaim
> ### Title: Boostrap CGAIM
> ### Aliases: boot.cgaim
>
> ### ** Examples
>
> # A simple CGAIM
> n <- 200
> x1 <- rnorm(n)
> x2 <- x1 + rnorm(n)
> z <- x1 + x2
> y <- z + rnorm(n)
> df1 <- data.frame(y, x1, x2)
> ans <- cgaim(y ~ g(x1, x2, acons = list(monotone = 1)), data = df1)
Use of the `newdata` argument is deprecated.
Instead, use the data argument `data`.
Error in dgx[, j] <- derivs[derivs$smooth == gfit$smooth[[jind]]$label, :
number of items to replace is not a multiple of replacement length
Calls: cgaim -> do.call -> <Anonymous> -> do.call -> smooth_scam
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [31s/69s] ERROR
Running ‘testthat.R’ [30s/64s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(cgaim)
>
> test_check("cgaim")
[ FAIL 5 | WARN 0 | SKIP 0 | PASS 16 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-basic_models.R:29:1'): (code run outside of `test_that()`) ─────
Error in `dgx[, j] <- derivs[derivs$smooth == gfit$smooth[[jind]]$label,
"derivative"]`: number of items to replace is not a multiple of replacement length
Backtrace:
▆
1. └─cgaim::cgaim(y ~ g(x1, x2), data = df1) at test-basic_models.R:29:1
2. ├─base::do.call(cgaim.fit, fitpars)
3. └─cgaim (local) `<fn>`(...)
4. ├─base::do.call(smooth_fun, smo_par)
5. └─cgaim:::smooth_scam(...)
── Error ('test-bootstrap.R:11:1'): (code run outside of `test_that()`) ────────
Error in `dgx[, j] <- derivs[derivs$smooth == gfit$smooth[[jind]]$label,
"derivative"]`: number of items to replace is not a multiple of replacement length
Backtrace:
▆
1. └─cgaim::cgaim(y ~ g(x1, x2, acons = list(monotone = 1)), data = df1) at test-bootstrap.R:11:1
2. ├─base::do.call(cgaim.fit, fitpars)
3. └─cgaim (local) `<fn>`(...)
4. ├─base::do.call(smooth_fun, smo_par)
5. └─cgaim:::smooth_scam(...)
── Failure ('test-build_constraint.R:35:3'): Solution is feasible ──────────────
all((full2 %*% redres2$solution) >= -.Machine$double.eps) is not TRUE
`actual`: FALSE
`expected`: TRUE
── Error ('test-no_intercept.R:16:1'): (code run outside of `test_that()`) ─────
Error in `dgx[, j] <- derivs[derivs$smooth == gfit$smooth[[jind]]$label,
"derivative"]`: number of items to replace is not a multiple of replacement length
Backtrace:
▆
1. └─cgaim::cgaim(...) at test-no_intercept.R:16:1
2. ├─base::do.call(cgaim.fit, fitpars)
3. └─cgaim (local) `<fn>`(...)
4. ├─base::do.call(smooth_fun, smo_par)
5. └─cgaim:::smooth_scam(...)
── Error ('test_updateAlpha.R:26:1'): (code run outside of `test_that()`) ──────
Error in `matrix(derivs[["derivative"]], ncol = 2)`: 'data' must be of a vector type, was 'NULL'
Backtrace:
▆
1. └─base::matrix(derivs[["derivative"]], ncol = 2) at test_updateAlpha.R:26:1
[ FAIL 5 | WARN 0 | SKIP 0 | PASS 16 ]
Error: Test failures
Execution halted
- checking PDF version of manual ... [7s/110s] OK
- checking HTML version of manual ... OK
- checking for non-standard things in the check directory ... OK
- checking for detritus in the temp directory ... OK
- DONE
Status: 2 ERRORs