tests/testthat/test-armaroots.R

# A unit test for armaroots.R
if (require(testthat)) {
  test_that("Tests for plot.Arima()", {
    arimafit <- Arima(lynx, c(2, 0, 2), include.mean = FALSE)
    plot(arimafit)
    plot(arimafit, type = "ma")
    plot(arimafit, type = "ar")
    expect_warning(plot(Arima(lynx, c(0, 1, 0))))
  })
}

Try the forecast package in your browser

Any scripts or data that you put into this service are public.

forecast documentation built on Aug. 31, 2023, 5:13 p.m.