From 709092a54018a84e1722075674f53f34ea42cbb3 Mon Sep 17 00:00:00 2001 From: Ty Garber Date: Wed, 6 Mar 2024 07:44:36 -0800 Subject: [PATCH] fix to coho fish mort graph --- R/report_fishery_mortality.R | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/R/report_fishery_mortality.R b/R/report_fishery_mortality.R index c961d7c..da66b5b 100644 --- a/R/report_fishery_mortality.R +++ b/R/report_fishery_mortality.R @@ -111,17 +111,17 @@ fishery_mortality <- function(fram_db, run_id = NULL, msp = TRUE) { coho_stock_mortality <- function(fram_db, run_id = NULL, stock_id = NULL, top_n = 10){ # check for null ids - if (is.null(.env$run_id) | is.null(.env$stock_id)) { + if (is.null(run_id) | is.null(stock_id)) { rlang::abort("Both a run_id and stock_id must be supplied") } # make sure run ids are integers - if (!is.numeric(.env$run_id)) { + if (!is.numeric(run_id)) { rlang::abort("Run ID must be and integer") } # make sure run ids are integers - if (!is.numeric(.env$stock_id)) { + if (!is.numeric(stock_id)) { rlang::abort("Stock ID must be and integer") }