Last updated on 2026-03-02 11:51:50 CET.
| Package | ERROR | OK |
|---|---|---|
| bridgr | 1 | 13 |
Current CRAN status: ERROR: 1, OK: 13
Version: 0.1.2
Check: tests
Result: ERROR
Running ‘testthat.R’ [79s/106s]
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(bridgr)
>
> test_check("bridgr")
Dependent variable: target | Frequency: quarter | Estimation sample: 2000-01-01 - 2000-07-01 | Forecast horizon: 1 quarter(s)
Dependent variable: target | Frequency: quarter | Estimation sample: 2000-01-01 - 2002-04-01 | Forecast horizon: 1 quarter(s)
Dependent variable: target | Frequency: quarter | Estimation sample: 2000-01-01 - 2002-04-01 | Forecast horizon: 1 quarter(s)
Dependent variable: target | Frequency: quarter | Estimation sample: 2000-01-01 - 2002-04-01 | Forecast horizon: 2 quarter(s)
Dependent variable: target | Frequency: quarter | Estimation sample: 2000-01-01 - 2000-10-01 | Forecast horizon: 1 quarter(s)
Dependent variable: target | Frequency: quarter | Estimation sample: 2000-01-01 - 2002-04-01 | Forecast horizon: 1 quarter(s)
Saving _problems/test-bridge-62.R
Dependent variable: target | Frequency: quarter | Estimation sample: 2000-01-01 - 2002-04-01 | Forecast horizon: 1 quarter(s)
Dependent variable: target | Frequency: quarter | Estimation sample: 2000-01-01 - 2002-04-01 | Forecast horizon: 1 quarter(s)
Dependent variable: target | Frequency: quarter | Estimation sample: 2000-01-01 - 2002-10-01 | Forecast horizon: 1 quarter(s)
Dependent variable: target | Frequency: quarter | Estimation sample: 2000-01-01 - 2002-10-01 | Forecast horizon: 1 quarter(s)
Bridge model summary
-----------------------------------
Main model:
-----------------------------------
Series: target
Regression with ARIMA(0,0,0) errors
Coefficients:
intercept indic indic_lag1
0.3453 0.1274 -0.8070
s.e. 0.2460 0.8698 0.8887
sigma^2 = 0.9131: log likelihood = -13.36
AIC=34.71 AICc=41.38 BIC=36.31
-----------------------------------
Single indicator models:
-----------------------------------
Series: indic
ARIMA(0,0,1) with zero mean
Coefficients:
ma1
-0.3560
s.e. 0.1349
sigma^2 = 1.108: log likelihood = -55.43
AIC=114.87 AICc=115.21 BIC=118.14
Aggregation to low frequency:
Using mean over values in corresponding periods.
-----------------------------------
Dependent variable: target | Frequency: quarter | Estimation sample: 2000-01-01 - 2002-10-01 | Forecast horizon: 1 quarter(s)
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 13 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-bridge.R:62:3'): bridge supports expalmon aggregator function ──
Error in `if (any(weights < 0)) { return(Inf) }`: missing value where TRUE/FALSE needed
Backtrace:
▆
1. └─bridgr::bridge(...) at test-bridge.R:62:3
2. └─stats::optim(...)
3. └─stats (local) `<fn>`(`<dbl>`)
4. └─bridgr (local) fn(par, ...)
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 13 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc