From 1f4db8781ba6d36d7d954a67312373585e211f4a Mon Sep 17 00:00:00 2001 From: Sebastian Funk Date: Fri, 15 Mar 2024 09:20:40 +0000 Subject: [PATCH] hotfix: remove function again it had previously been removed --- R/deprecated.R | 33 --------------------------------- 1 file changed, 33 deletions(-) diff --git a/R/deprecated.R b/R/deprecated.R index 9c9bba0db..5aa2c6f5d 100644 --- a/R/deprecated.R +++ b/R/deprecated.R @@ -179,39 +179,6 @@ lognorm_dist_def <- function(mean, mean_sd, return(dist) } -#' Tune an Inverse Gamma to Achieve the Target Truncation -#' -#' @description `r lifecycle::badge("deprecated")` -#' Allows an inverse gamma distribution to be. tuned so that less than 0.01 of -#' its probability mass function falls outside of the specified bounds. This is -#' required when using an inverse gamma prior, for example for a Gaussian -#' process. As no inverse gamma priors are currently in use and this function -#' has some stability issues it has been deprecated. -#' -#' @param lower Numeric, defaults to 2. Lower truncation bound. -#' -#' @param upper Numeric, defaults to 21. Upper truncation bound. -#' -#' @return A list of alpha and beta values that describe a inverse gamma -#' distribution that achieves the target truncation. -#' @export -#' -#' @keywords internal -#' -tune_inv_gamma <- function(lower = 2, upper = 21) { - lifecycle::deprecate_stop( - "1.3.6", "tune_inv_gamma()", - details = paste0( - "As no inverse gamma priors are currently in use and this function has ", - "some stability issues it has been deprecated. Please let the package ", - "authors know if deprecating this function has caused any issues. ", - "For the last active version of the function see the one contained ", - "in version 1.3.5 at ", - "https://github.com/epiforecasts/EpiNow2/blob/bad836ebd650ace73ad1ead887fd0eae98c52dd6/R/dist.R#L739" # nolint - ) - ) -} - #' Specify a distribution. #' #' @description `r lifecycle::badge("deprecated")`