Skip to content

Commit

Permalink
soft deprecate old functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Chantel Wetzel committed May 10, 2024
1 parent ffcc409 commit b37af66
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions R/Biomass.fn.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions R/plotBio.fn.R
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 6 additions & 0 deletions R/plotBioStrata.fn.R
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit b37af66

Please sign in to comment.