resolve R check note

This commit is contained in:
Ben Letham 2020-08-18 19:14:16 -07:00
parent dbe8f49de7
commit dd9a6a4161
2 changed files with 3 additions and 3 deletions

View file

@ -48,4 +48,4 @@ LinkingTo:
LazyData: true
VignetteBuilder: knitr
Encoding: UTF-8
RoxygenNote: 7.1.0
RoxygenNote: 7.1.1

View file

@ -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
}