diff --git a/R/DESCRIPTION b/R/DESCRIPTION index 4461525..18c1533 100644 --- a/R/DESCRIPTION +++ b/R/DESCRIPTION @@ -48,4 +48,4 @@ LinkingTo: LazyData: true VignetteBuilder: knitr Encoding: UTF-8 -RoxygenNote: 7.1.0 +RoxygenNote: 7.1.1 diff --git a/R/R/diagnostics.R b/R/R/diagnostics.R index 242216d..ba56e59 100644 --- a/R/R/diagnostics.R +++ b/R/R/diagnostics.R @@ -5,7 +5,7 @@ ## Makes R CMD CHECK happy due to dplyr syntax below globalVariables(c( - "ds", "y", "cap", "yhat", "yhat_lower", "yhat_upper")) + "ds", "y", "cap", "yhat", "yhat_lower", "yhat_upper", "size")) #' Generate cutoff dates #' @@ -408,7 +408,7 @@ rolling_median_by_h <- function(x, h, w, name) { break } res.i <- data.frame(horizon=hs[i]) - res.i[[name]] <- median(xs) + res.i[[name]] <- stats::median(xs) res <- rbind(res.i, res) i <- i - 1 }