- using R version 4.3.3 (2024-02-29)
- using platform: x86_64-apple-darwin20 (64-bit)
- R was compiled by
Apple clang version 14.0.0 (clang-1400.0.29.202)
GNU Fortran (GCC) 12.2.0
- running under: macOS Ventura 13.3.1
- using session charset: UTF-8
- checking for file ‘bage/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘bage’ version ‘0.9.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 ‘bage’ can be installed ... [120s/188s] OK
See the install log for details.
- used C++ compiler: ‘Apple clang version 14.0.3 (clang-1403.0.22.14.1)’
- used SDK: ‘MacOSX11.3.sdk’
- checking installed package size ... NOTE
installed size is 77.6Mb
sub-directories of 1Mb or more:
doc 4.9Mb
libs 71.2Mb
- checking package directory ... OK
- checking ‘build’ 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 R files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [1s/1s] OK
- checking whether the package can be loaded with stated dependencies ... [0s/1s] OK
- checking whether the package can be unloaded cleanly ... [1s/1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s/1s] OK
- checking whether the namespace can be unloaded cleanly ... [1s/1s] OK
- checking loading without being on the library search path ... [1s/1s] 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 ... [16s/25s] OK
- checking Rd files ... [1s/1s] OK
- checking Rd metadata ... 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 contents of ‘data’ directory ... OK
- checking data for non-ASCII characters ... [1s/2s] OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking line endings in C/C++/Fortran sources/headers ... OK
- checking line endings in Makefiles ... OK
- checking compilation flags in Makevars ... OK
- checking for GNU extensions in Makefiles ... OK
- checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK
- checking use of PKG_*FLAGS in Makefiles ... OK
- checking compiled code ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [15s/26s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [69s/138s] ERROR
Running ‘testthat.R’ [69s/137s]
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/tests.html
> # * https://testthat.r-lib.org/reference/test_package.html#special-files
>
> library(testthat)
> library(bage)
Loading required package: rvec
Attaching package: 'rvec'
The following objects are masked from 'package:stats':
sd, var
The following object is masked from 'package:base':
rank
>
> test_check("bage")
[ FAIL 11 | WARN 0 | SKIP 7 | PASS 2246 ]
══ Skipped tests (7) ═══════════════════════════════════════════════════════════
• On CRAN (7): 'test-bage_mod-methods.R:2242:5',
'test-bage_mod-methods.R:2257:5', 'test-bage_prior-methods.R:10095:3',
'test-bage_ssvd-methods.R:162:3', 'test-make-inputs.R:1719:3',
'test-make-inputs.R:1728:3', 'test-make-inputs.R:1735:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-bage_prior-methods.R:1701:3'): 'draw_vals_effect' works with bage_prior_svd_rw2random - age and sex ──
Error in `crossprod(x, y)`: requires numeric/complex matrix/vector arguments
Backtrace:
▆
1. ├─bage:::draw_vals_effect(...) at test-bage_prior-methods.R:1701:3
2. └─bage:::draw_vals_effect.bage_prior_svd_rw2random(...)
3. └─bage:::make_matrix_effectfree_effect_inner(...)
4. ├─bage:::make_matrix_sub_orig(...)
5. └─bage:::make_matrix_sub_orig.bage_prior_svd_rw2random(...)
6. └─bage:::make_matrix_sub_orig_svd(...)
7. └─base::crossprod(m_constr, ans)
── Error ('test-bage_prior-methods.R:1739:3'): 'draw_vals_effect' works with bage_prior_svd_rw2zero - age and sex ──
Error in `crossprod(x, y)`: requires numeric/complex matrix/vector arguments
Backtrace:
▆
1. ├─bage:::draw_vals_effect(...) at test-bage_prior-methods.R:1739:3
2. └─bage:::draw_vals_effect.bage_prior_svd_rw2zero(...)
3. └─bage:::make_matrix_effectfree_effect_inner(...)
4. ├─bage:::make_matrix_sub_orig(...)
5. └─bage:::make_matrix_sub_orig.bage_prior_svd_rw2zero(...)
6. └─bage:::make_matrix_sub_orig_svd(...)
7. └─base::crossprod(m_constr, ans)
── Error ('test-bage_prior-methods.R:4835:3'): 'forecast_term' works with bage_prior_svd_ar - con is 'by' ──
Error in `crossprod(x, y)`: requires numeric/complex matrix/vector arguments
Backtrace:
▆
1. ├─bage:::forecast_term(...) at test-bage_prior-methods.R:4835:3
2. └─bage:::forecast_term.bage_prior_svd_ar(...)
3. ├─bage:::make_matrix_effectfree_effect(...)
4. └─bage:::make_matrix_effectfree_effect.bage_prior_svd_ar(...)
5. └─bage:::make_matrix_effectfree_effect_inner(...)
6. ├─bage:::make_matrix_sub_orig(...)
7. └─bage:::make_matrix_sub_orig.bage_prior_svd_ar(...)
8. └─bage:::make_matrix_sub_orig_svd(...)
9. └─base::crossprod(m_constr, ans)
── Error ('test-bage_prior-methods.R:4926:3'): 'forecast_term' works with bage_prior_svd_rwrandom - con is 'by' ──
Error in `crossprod(x, y)`: requires numeric/complex matrix/vector arguments
Backtrace:
▆
1. ├─bage:::forecast_term(...) at test-bage_prior-methods.R:4926:3
2. └─bage:::forecast_term.bage_prior_svd_rwrandom(...)
3. └─bage:::make_matrix_effectfree_effect_inner(...)
4. ├─bage:::make_matrix_sub_orig(...)
5. └─bage:::make_matrix_sub_orig.bage_prior_svd_rwrandom(...)
6. └─bage:::make_matrix_sub_orig_svd(...)
7. └─base::crossprod(m_constr, ans)
── Error ('test-bage_prior-methods.R:4989:3'): 'forecast_term' works with bage_prior_svd_rw2zero - con is 'by' ──
Error in `crossprod(x, y)`: requires numeric/complex matrix/vector arguments
Backtrace:
▆
1. ├─bage:::forecast_term(...) at test-bage_prior-methods.R:4989:3
2. └─bage:::forecast_term.bage_prior_svd_rw2zero(...)
3. └─bage:::make_matrix_effectfree_effect_inner(...)
4. ├─bage:::make_matrix_sub_orig(...)
5. └─bage:::make_matrix_sub_orig.bage_prior_svd_rw2zero(...)
6. └─bage:::make_matrix_sub_orig_svd(...)
7. └─base::crossprod(m_constr, ans)
── Error ('test-bage_prior-methods.R:9869:3'): 'make_matrix_sub_orig' works with bage_prior_svd_ar - sex x time x age interaction, con is 'by' ──
Error in `crossprod(x, y)`: requires numeric/complex matrix/vector arguments
Backtrace:
▆
1. ├─bage:::make_matrix_sub_orig(...) at test-bage_prior-methods.R:9869:3
2. └─bage:::make_matrix_sub_orig.bage_prior_svd_ar(...)
3. └─bage:::make_matrix_sub_orig_svd(...)
4. └─base::crossprod(m_constr, ans)
── Error ('test-mapping-matrices.R:789:3'): 'make_matrix_effectfree_effect' works with SVD-based matrix_sub_orig, con is 'by' ──
Error in `crossprod(x, y)`: requires numeric/complex matrix/vector arguments
Backtrace:
▆
1. └─bage:::make_matrix_effectfree_effect_inner(...) at test-mapping-matrices.R:789:3
2. ├─bage:::make_matrix_sub_orig(...)
3. └─bage:::make_matrix_sub_orig.bage_prior_svd_rwrandom(...)
4. └─bage:::make_matrix_sub_orig_svd(...)
5. └─base::crossprod(m_constr, ans)
── Error ('test-mapping-matrices.R:864:3'): 'make_matrix_perm_along_to_front' works with 2 dimensions, along second ──
Error in `crossprod(x, y)`: requires numeric/complex matrix/vector arguments
Backtrace:
▆
1. ├─testthat::expect_identical(as.matrix(crossprod(m)), diag(6)) at test-mapping-matrices.R:864:3
2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─base::as.matrix(crossprod(m))
5. └─base::crossprod(m)
── Error ('test-mapping-matrices.R:872:3'): 'make_matrix_perm_along_to_front' works with 3 dimensions, along second ──
Error in `crossprod(x, y)`: requires numeric/complex matrix/vector arguments
Backtrace:
▆
1. ├─testthat::expect_identical(as.matrix(crossprod(m)), diag(12)) at test-mapping-matrices.R:872:3
2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─base::as.matrix(crossprod(m))
5. └─base::crossprod(m)
── Error ('test-mapping-matrices.R:911:3'): 'make_matrix_sub_orig_svd' works with bage_prior_svd_ar - time x age interaction, con is 'none' ──
Error in `crossprod(x, y)`: requires numeric/complex matrix/vector arguments
Backtrace:
▆
1. └─bage:::make_matrix_sub_orig_svd(...) at test-mapping-matrices.R:911:3
2. └─base::crossprod(m_constr, ans)
── Error ('test-mapping-matrices.R:928:3'): 'make_matrix_sub_orig_svd' works with bage_prior_svd_ar - sex x time x age interaction, con is 'none' ──
Error in `crossprod(x, y)`: requires numeric/complex matrix/vector arguments
Backtrace:
▆
1. └─bage:::make_matrix_sub_orig_svd(...) at test-mapping-matrices.R:928:3
2. └─base::crossprod(m_constr, ans)
[ FAIL 11 | WARN 0 | SKIP 7 | PASS 2246 ]
Error: Test failures
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes in ‘inst/doc’ ... OK
- checking re-building of vignette outputs ... [204s/320s] OK
- checking PDF version of manual ... [10s/10s] OK
- DONE
Status: 1 ERROR, 1 NOTE
- using check arguments '--no-clean-on-error '