Skip to content

Commit

Permalink
Move up version for deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmbaazam committed Feb 22, 2024
1 parent 2480107 commit 2fe37f0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions R/get.R
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ get_regional_results <- function(regional_output,
#' @export
get_dist <- function(data, disease, source, max_value = 14, fixed = FALSE) {
lifecycle::deprecate_warn(
"2.0.0", "get_dist()", "dist_spec()",
"1.5.0", "get_dist()", "dist_spec()",
"The function will be removed completely in version 2.1.0."
)
target_disease <- disease
Expand Down Expand Up @@ -212,7 +212,7 @@ get_dist <- function(data, disease, source, max_value = 14, fixed = FALSE) {
get_generation_time <- function(disease, source, max_value = 14,
fixed = FALSE) {
lifecycle::deprecate_warn(
"2.0.0", "get_generation_time()", "dist_spec()",
"1.5.0", "get_generation_time()", "dist_spec()",

Check warning on line 215 in R/get.R

View check run for this annotation

Codecov / codecov/patch

R/get.R#L215

Added line #L215 was not covered by tests
paste(
"The function will be removed completely in version 2.1.0. To obtain the",
"previous estimate by Ganyani et al. (2020) use ",
Expand Down Expand Up @@ -242,7 +242,7 @@ get_generation_time <- function(disease, source, max_value = 14,
get_incubation_period <- function(disease, source, max_value = 14,
fixed = FALSE) {
lifecycle::deprecate_warn(
"2.0.0", "get_incubation_period()", "dist_spec()",
"1.5.0", "get_incubation_period()", "dist_spec()",

Check warning on line 245 in R/get.R

View check run for this annotation

Codecov / codecov/patch

R/get.R#L245

Added line #L245 was not covered by tests
paste(
"The function will be removed completely in version 2.1.0. To obtain the",
"previous estimate by Ganyani et al. (2020) use ",
Expand Down
6 changes: 3 additions & 3 deletions R/opts.R
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ rstan_sampling_opts <- function(cores = getOption("mc.cores", 1L),
max_execution_time = Inf,
...) {
lifecycle::deprecate_warn(
"2.0.0", "rstan_sampling_opts()",
"1.5.0", "rstan_sampling_opts()",

Check warning on line 546 in R/opts.R

View check run for this annotation

Codecov / codecov/patch

R/opts.R#L546

Added line #L546 was not covered by tests
"stan_sampling_opts()",
"This function will be removed in version 2.1.0."
)
Expand Down Expand Up @@ -663,7 +663,7 @@ rstan_vb_opts <- function(samples = 2000,
trials = 10,
iter = 10000, ...) {
lifecycle::deprecate_warn(
"2.0.0", "rstan_vb_opts()",
"1.5.0", "rstan_vb_opts()",

Check warning on line 666 in R/opts.R

View check run for this annotation

Codecov / codecov/patch

R/opts.R#L666

Added line #L666 was not covered by tests
"stan_vb_opts()",
"This function will be removed in version 2.1.0."
)
Expand Down Expand Up @@ -730,7 +730,7 @@ rstan_opts <- function(object = NULL,
samples = 2000,
method = "sampling", ...) {
lifecycle::deprecate_warn(
"2.0.0", "rstan_opts()",
"1.5.0", "rstan_opts()",

Check warning on line 733 in R/opts.R

View check run for this annotation

Codecov / codecov/patch

R/opts.R#L733

Added line #L733 was not covered by tests
"stan_opts()",
"This function will be removed in version 2.1.0."
)
Expand Down
2 changes: 1 addition & 1 deletion R/simulate_infections.R
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ simulate_infections <- function(estimates, R, initial_infections,
## deprecated usage
if (!missing(estimates)) {
deprecate_warn(
"2.0.0",
"1.5.0",
"simulate_infections(estimates)",
"forecast_infections()",
details = paste0(
Expand Down

0 comments on commit 2fe37f0

Please sign in to comment.