tidyverts / fabletools

General fable features useful for extension packages
http://fabletools.tidyverts.org/
89 stars 31 forks source link

Error in producing residuals from decomposition model #393

Closed robjhyndman closed 4 months ago

robjhyndman commented 5 months ago
library(fpp3)

my_dcmp_spec <- decomposition_model(
  STL(value),
  ETS(season_adjust ~ season("N"))
)

as_tsibble(USAccDeaths) |>
  model(my_dcmp_spec) |>
  residuals(type = "innovation")
#> Error in `mutate()`:
#> ℹ In argument: `dplyr::across(...)`.
#> Caused by error in `across()`:
#> ! Can't compute column `my_dcmp_spec`.
#> Caused by error in `residuals.mdl_ts()`:
#> ! formal argument "type" matched by multiple actual arguments

Created on 2024-02-05 with reprex v2.1.0

mitchelloharawild commented 4 months ago

Resolved in b0330e6e2bea58910dc7946c24a16de39d53214d