Skip to content

Commit

Permalink
Merge pull request #7 from FRAMverse/fix/docs
Browse files Browse the repository at this point in the history
Fix/docs
  • Loading branch information
Ty-WDFW authored Mar 6, 2024
2 parents c490c9a + 709092a commit 612db6d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions R/report_fishery_mortality.R
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

Expand Down
2 changes: 1 addition & 1 deletion R/report_stock_mortality.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#' @examples
#' \dontrun{
#' fram_db |>
#' stock_mortality(run=132) |>
#' stock_mortality(run_id=132) |>
#' filter(stock_id == 17, fishery_id == 36)
#'
#' }
Expand Down
2 changes: 1 addition & 1 deletion man/stock_mortality.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 612db6d

Please sign in to comment.