- using R Under development (unstable) (2026-09-19 r90568)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc (GCC) 16.2.1 20260819 (Red Hat 16.2.1-2)
GNU Fortran (GCC) 16.2.1 20260819 (Red Hat 16.2.1-2)
- running under: Fedora Linux 44 (Server Edition)
- using session charset: UTF-8
* current time: 2026-09-20 06:20:42 UTC
- using option ‘--no-stop-on-test-error’
- checking for file ‘EconCausal/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘EconCausal’ version ‘1.0.4’
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... INFO
Package suggested but not available for checking: 'cmdstanr'
- 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 ‘EconCausal’ can be installed ... OK
See the install log for details.
- 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 code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... 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 ... 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 ... 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 installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... ERROR
Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(EconCausal)
>
> test_check("EconCausal")
Saving _problems/test-bglmar1-37.R
Saving _problems/test-bsts_model-15.R
[ FAIL 2 | WARN 0 | SKIP 1 | PASS 71 ]
══ Skipped tests (1) ═══════════════════════════════════════════════════════════
• the BLAS in use does not report a thread count set through RhpcBLASctl (1):
'test-ecm_mars.R:127:5'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-bglmar1.R:29:3'): bglmar1() stops when no Stan backend is available ──
<dplyr:::mutate_error/rlang_error/error/condition>
Error in `dplyr::mutate(., t_index = seq_len(n()))`: i In argument: `t_index = seq_len(n())`.
Caused by error in `n()`:
! could not find function "n"
Backtrace:
▆
1. ├─testthat::expect_error(...) at test-bglmar1.R:29:3
2. │ └─testthat:::expect_condition_matching_(...)
3. │ └─testthat:::quasi_capture(...)
4. │ ├─testthat (local) .capture(...)
5. │ │ └─base::withCallingHandlers(...)
6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
7. ├─EconCausal:::ec_without_libraries(...)
8. │ └─base::force(expr) at ./helper-econcausal.R:83:3
9. ├─EconCausal::bglmar1(...)
10. │ └─DATA %>% dplyr::arrange(.data$Month) %>% ...
11. ├─dplyr::mutate(., t_index = seq_len(n()))
12. ├─dplyr:::mutate.data.frame(., t_index = seq_len(n()))
13. │ └─dplyr:::mutate_cols(.data, dplyr_quosures(...), by)
14. │ ├─base::withCallingHandlers(...)
15. │ └─dplyr:::mutate_col(dots[[i]], data, mask, new_columns)
16. │ └─mask$eval_all_mutate(quo)
17. │ └─dplyr (local) eval()
18. └─dplyr (local) `<fn>`(`<fnctnNFE>`)
19. └─rlang::abort(message, class = error_class, parent = parent, call = error_call)
── Error ('test-bsts_model.R:7:3'): bsts_model() names 'bsts' when that package is missing ──
Error: `path` does not exist: '/tmp/RtmpMpgTfn/working_dir/Rtmp4tbz3h/econcausal-missing-1f10af4f385869.xlsx'
Backtrace:
▆
1. ├─testthat::expect_error(...) at test-bsts_model.R:7:3
2. │ └─testthat:::expect_condition_matching_(...)
3. │ └─testthat:::quasi_capture(...)
4. │ ├─testthat (local) .capture(...)
5. │ │ └─base::withCallingHandlers(...)
6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
7. ├─EconCausal:::ec_without_libraries(...)
8. │ └─base::force(expr) at ./helper-econcausal.R:83:3
9. ├─EconCausal::bsts_model(...)
10. │ ├─... %>% ensure_time_index()
11. │ └─readxl::read_excel(data_path)
12. │ └─readxl:::check_file(path)
13. ├─EconCausal (local) ensure_time_index(.)
14. │ └─"Month" %in% names(df)
15. └─dplyr::rename_with(., simple_name)
[ FAIL 2 | WARN 0 | SKIP 1 | PASS 71 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [12s/13s] OK
- checking PDF version of manual ... 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: 1 ERROR