tests/testthat/_problems/test-garma2-9.R

# Extracted from test-garma2.R:9

# setup ------------------------------------------------------------------------
library(testthat)
test_env <- simulate_test_env(package = "garma", path = "..")
attach(test_env, warn.conflicts = FALSE)

# test -------------------------------------------------------------------------
data(AirPassengers)
ap <- log(AirPassengers)
dap <- diff(ap)
testthat::expect_snapshot({
    fit <- garma(dap, order = c(9, 0, 0), k = 1)
    print(fit)
  })

Try the garma package in your browser

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

garma documentation built on Feb. 7, 2026, 9:07 a.m.