Skip to content

Commit

Permalink
fix pkgdown and R4.0 issue with pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
nikosbosse committed Jul 28, 2024
1 parent a36e840 commit 54ffbb4
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions R/forecast.R
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ as_forecast_generic <- function(data,
#' @seealso [as_forecast()], [as_forecast_point()], [as_forecast_binary()],
#' [as_forecast_sample()], [as_forecast_quantile()]
#' @importFrom cli cli_warn
#' @keywords check-forecasts
as_forecast_binary <- function(data,
forecast_unit = NULL,
observed = NULL,
Expand All @@ -137,6 +138,7 @@ as_forecast_binary <- function(data,
#' @seealso [as_forecast()], [as_forecast_point()], [as_forecast_binary()],
#' [as_forecast_sample()], [as_forecast_quantile()]
#' @export
#' @keywords check-forecasts
as_forecast_point <- function(data, ...) {
UseMethod("as_forecast_point")
}
Expand Down Expand Up @@ -185,6 +187,7 @@ as_forecast_point.forecast_quantile <- function(data, ...) {
#' [as_forecast_sample()], [as_forecast_quantile()]
#' @inheritParams as_forecast
#' @export
#' @keywords check-forecasts
as_forecast_quantile <- function(data, ...) {
UseMethod("as_forecast_quantile")
}
Expand Down Expand Up @@ -270,6 +273,7 @@ as_forecast_quantile.forecast_sample <- function(
#' @seealso [as_forecast()], [as_forecast_point()], [as_forecast_binary()],
#' [as_forecast_sample()], [as_forecast_quantile()]
#' @importFrom cli cli_warn
#' @keywords check-forecasts
as_forecast_sample <- function(data,
forecast_unit = NULL,
observed = NULL,
Expand Down
1 change: 1 addition & 0 deletions man/as_forecast_binary.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions man/as_forecast_quantile.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions man/as_forecast_sample.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/testthat/test-utils_data_handling.R
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ test_that("as_forecast_quantiles works", {
observed = 1:10,
predicted = c(rep(0, 10), 2:11, 3:12, 4:13, rep(100, 10)),
sample_id = rep(1:5, each = 10)
) |>
) %>%
as_forecast_sample()

quantile <- data.frame(
Expand Down

0 comments on commit 54ffbb4

Please sign in to comment.