From dd9a6a41612c5ab209e6582c622d3b040f3d549b Mon Sep 17 00:00:00 2001 From: Ben Letham Date: Tue, 18 Aug 2020 19:14:16 -0700 Subject: [PATCH] resolve R check note --- R/DESCRIPTION | 2 +- R/R/diagnostics.R | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 }