diff --git a/R/Biomass.fn.R b/R/Biomass.fn.R index a58b896..14425d8 100644 --- a/R/Biomass.fn.R +++ b/R/Biomass.fn.R @@ -62,6 +62,12 @@ Biomass.fn <- function( fleet = "Enter fleet", verbose = TRUE) { + lifecycle::deprecate_soft( + when = "2.XX", + what = "nwfscSurvey::Biomass.fn()", + details = "Please switch to get_design_based()." + ) + if (is.null(dat$cpue_kg_km2)) stop("There must be a column called cpue_kg_km2 in the dataframe") # Calculate the CPUE in terms of nubmer diff --git a/R/plotBio.fn.R b/R/plotBio.fn.R index dab4b63..f48f6d6 100644 --- a/R/plotBio.fn.R +++ b/R/plotBio.fn.R @@ -36,6 +36,12 @@ PlotBio.fn <- function( dopng = lifecycle::deprecated(), ...) { + lifecycle::deprecate_soft( + when = "2.XX", + what = "nwfscSurvey::PlotBio.fn()", + details = "Please switch to pull_index()." + ) + if (lifecycle::is_present(dopng)) { lifecycle::deprecate_warn( when = "2.1", diff --git a/R/plotBioStrata.fn.R b/R/plotBioStrata.fn.R index 55bcf52..4a76646 100644 --- a/R/plotBioStrata.fn.R +++ b/R/plotBioStrata.fn.R @@ -45,6 +45,12 @@ PlotBioStrata.fn <- function( dopng = lifecycle::deprecated(), ...) { + lifecycle::deprecate_soft( + when = "2.XX", + what = "nwfscSurvey::PlotBioStrata.fn()", + details = "Please switch to pull_index()." + ) + if (lifecycle::is_present(dopng)) { lifecycle::deprecate_warn( when = "2.1",