R/deprecated.R

Defines functions userdefined_variables_x13 .jx13 fast_regarima fast_x13 spec_x11 spec_regarima spec_x13

Documented in fast_regarima fast_x13 .jx13 spec_regarima spec_x11 spec_x13 userdefined_variables_x13

#' @title Deprecated functions
#'
#' @param x useless parameter
#' @inheritParams x13
#' @inheritParams x13_spec
#'
#' @name deprecated-rjd3x13
#'
#' @returns All these functions are deprecated and return the same value as the
#' function that replaces them:
#'
#' - `spec_x13()` returns the same value as `x13_spec()`
#' - `spec_regarima()` returns the same value as `regarima_spec()`
#' - `spec_x11()` returns the same value as `x11_spec()`
#' - `fast_x13()` returns the same value as `x13_fast()`
#' - `fast_regarima()` returns the same value as `regarima_fast()`
#' - `.jx13()` returns the same value as `jx13()`
#' - `userdefined_variables_x13()` returns the same value as `x13_dictionary()`
#'
#' @rdname deprecated-rjd3x13
#' @export
spec_x13 <- function(
    name = c("rsa4", "rsa0", "rsa1", "rsa2c", "rsa3", "rsa5c")
) {
    .Deprecated("x13_spec")
    x13_spec(name)
}
#' @rdname deprecated-rjd3x13
#' @export
spec_regarima <- function(
    name = c("rg4", "rg0", "rg1", "rg2c", "rg3", "rg5c")
) {
    .Deprecated("regarima_spec")
    regarima_spec(name)
}
#' @rdname deprecated-rjd3x13
#' @export
spec_x11 <- function() {
    .Deprecated("x11_spec")
    x11_spec()
}
#' @rdname deprecated-rjd3x13
#' @export
fast_x13 <- function(
    ts,
    spec = c("rsa4", "rsa0", "rsa1", "rsa2c", "rsa3", "rsa5c"),
    context = NULL,
    userdefined = NULL
) {
    .Deprecated("x13_fast")
    x13_fast(ts, spec, context, userdefined)
}
#' @rdname deprecated-rjd3x13
#' @export
fast_regarima <- function(
    ts,
    spec = c("rg4", "rg0", "rg1", "rg2c", "rg3", "rg5c"),
    context = NULL,
    userdefined = NULL
) {
    .Deprecated("regarima_fast")
    regarima_fast(ts, spec, context, userdefined)
}

#' @rdname deprecated-rjd3x13
#' @export
.jx13 <- function(
    ts,
    spec = c("rg4", "rg0", "rg1", "rg2c", "rg3", "rg5c"),
    context = NULL,
    userdefined = NULL
) {
    .Deprecated("jx13")
    jx13(ts, spec, context, userdefined)
}

#' @rdname deprecated-rjd3x13
#' @export
userdefined_variables_x13 <- function(x = c("X-13", "RegArima", "X-11")) {
    .Deprecated("x13_dictionary")
    x13_dictionary()
}

Try the rjd3x13 package in your browser

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

rjd3x13 documentation built on July 10, 2026, 9:08 a.m.