You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (any((model_opts$d+model_opts$D>1) &model_opts$constant)) {
255
-
warn("Model specification induces a quadratic or higher order polynomial trend.
255
+
cli::cli_warn("Model specification induces a quadratic or higher order polynomial trend.
256
256
This is generally discouraged, consider removing the constant or reducing the number of differences.")
257
257
}
258
258
constant<- unique(model_opts$constant)
@@ -337,8 +337,12 @@ This is generally discouraged, consider removing the constant or reducing the nu
337
337
}
338
338
339
339
if (is.null(best)) {
340
-
if (mostly_specified) warn(mostly_specified_msg)
341
-
abort("Could not find an appropriate ARIMA model.\nThis is likely because automatic selection does not select models with characteristic roots that may be numerically unstable.\nFor more details, refer to https://otexts.com/fpp3/arima-r.html#plotting-the-characteristic-roots")
340
+
if (mostly_specified) cli::cli_warn(mostly_specified_msg)
341
+
cli::cli_abort(c(
342
+
"Could not find an appropriate ARIMA model.",
343
+
"This is likely because automatic selection does not select models with characteristic roots that may be numerically unstable.",
344
+
"For more details, refer to {.url https://otexts.com/fpp3/arima-r.html#plotting-the-characteristic-roots}"
abort(sprintf("%s contains implicit gaps in time. You should check your data and convert implicit gaps into explicit missing values using `tsibble::fill_gaps()` if required.", deparse(substitute(x))))
3
+
cli::cli_abort(sprintf("%s contains implicit gaps in time. You should check your data and convert implicit gaps into explicit missing values using {.fn tsibble::fill_gaps} if required.", deparse(substitute(x))))
4
4
}
5
5
}
6
6
7
7
check_regular<-function(x) {
8
8
if (!is_regular(x)) {
9
-
abort(sprintf("%s is an irregular time series, which this model does not support. You should consider if your data can be made regular, and use `tsibble::update_tsibble(%s, regular = TRUE)` if appropriate.", deparse(substitute(x)), deparse(substitute(x))))
9
+
cli::cli_abort(sprintf("%s is an irregular time series, which this model does not support. You should consider if your data can be made regular, and use {.fn tsibble::update_tsibble(%s, regular = TRUE)} if appropriate.", deparse(substitute(x)), deparse(substitute(x))))
10
10
}
11
11
}
12
12
13
13
check_ordered<-function(x) {
14
14
if (!is_ordered(x)) {
15
-
abort(sprintf(
16
-
"%s is an unordered time series. To use this model, you first must sort the data in time order using `dplyr::arrange(%s, %s)`",
15
+
cli::cli_abort(sprintf(
16
+
"%s is an unordered time series. To use this model, you first must sort the data in time order using {.fn dplyr::arrange(%s, %s)}",
0 commit comments