-
Notifications
You must be signed in to change notification settings - Fork 43
R CMD check failure #224
Copy link
Copy link
Open
Description
We've been running R CMD check on packages for our package registry manager PRISM (Home | PRISM) and noticed that texreg is failing during tests with 1 failure. The test passes with an older version of forecast, so this appears related to forecast 9.0.0.
The full error output:
checking tests Running testthat.R
Running the tests in tests/testthat.R failed.
Last 13 lines of output:
7. ergm::shrink_into_CH(...)
8. statnet.common (local) warning_once(...)
Failed tests
Error ('test-extract.R:36:3'): extract forecast_ARIMA objects from the forecast package
Error in `extract(air.model)`: Neither texreg nor broom supports models of class fc_model.
Backtrace:
1. texreg::extract(air.model) at test-extract.R:36:3
2. texreg::extract(air.model)
[ FAIL 1 | WARN 5 | SKIP 9 | PASS 546 ]
Error: ! Test failures. Execution halted
Here is the failing test:
test_that("extract forecast_ARIMA objects from the forecast package", {
testthat::skip_on_cran()
skip_if_not_installed("forecast")
require("forecast")
set.seed(12345)
air.model <- Arima(window(AirPassengers, end = 1956 + 11 / 12),
order = c(0, 1, 1),
seasonal = list(order = c(0, 1, 1), period = 12),
lambda = 0)
tr <- extract(air.model)
expect_length(tr@coef.names, 2)
expect_length(tr@coef, 2)
expect_length(tr@se, 2)
expect_length(tr@pvalues, 2)
expect_length(tr@ci.low, 0)
expect_length(tr@ci.up, 0)
expect_length(tr@gof, 5)
expect_length(tr@gof.names, 5)
expect_length(tr@gof.decimal, 5)
expect_equivalent(which(tr@gof.decimal), 1:4)
expect_equivalent(which(tr@pvalues < 0.05), 1:2)
expect_equivalent(dim(matrixreg(air.model)), c(10, 2))
})
Happy to provide any more details or clarity if needed.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels