From 9bcb3af545734ac92b0cedf4faa498f13f51f8b8 Mon Sep 17 00:00:00 2001 From: athowes Date: Thu, 1 Aug 2024 15:10:34 +0100 Subject: [PATCH] Fix autoglobal! --- R/globals.R | 3 +++ R/plot-helpers.R | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/R/globals.R b/R/globals.R index 1de5f4568..172385bdf 100644 --- a/R/globals.R +++ b/R/globals.R @@ -55,6 +55,9 @@ utils::globalVariables(c( "censored_obs_time", # "delay_lwr", # "delay_daily", # + "obs_horizon", # + "meanlog", # + "sdlog", # "value", # "rel_value", # "case_type", # diff --git a/R/plot-helpers.R b/R/plot-helpers.R index d5b9df71c..2bb5f63dd 100644 --- a/R/plot-helpers.R +++ b/R/plot-helpers.R @@ -34,7 +34,7 @@ calculate_cohort_mean <- function(data, type = c("cohort", "cumulative"), #' @param distribution ... #' @family plot #' @importFrom stats integrate -#' @autoglobals +#' @autoglobal #' @export calculate_truncated_means <- function(draws, obs_at, ptime, distribution = function(x, y, z) {