Skip to content

Commit

Permalink
stop with message for sex, selex
Browse files Browse the repository at this point in the history
  • Loading branch information
mkapur-noaa committed Dec 18, 2024
1 parent 655f0eb commit fc68fd5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions R/check_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@


check_data <- function(dat, sex = FALSE, showPlot = TRUE) {
if(sex) stop("Cannot currently handle sex structure, set to FALSE")

## header checks
colheads <- tolower(names(dat));names(dat) <- colheads
Expand Down
2 changes: 1 addition & 1 deletion R/refit_Growth.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#' @export

refit_Growth <- function(dat = simulated_data, breakpoints, selex = FALSE, showPlot = TRUE){

if(selex) stop("Cannot currently handle selectivity, input must be FALSE.")
if(any(is.na(breakpoints))) stop('Cannot handle NA in breakpoints. Did you mean to use +/-Inf?')
# Apply the function to each row of df2
split_tables <- purrr::map(1:nrow(breakpoints), function(i) {
Expand Down

0 comments on commit fc68fd5

Please sign in to comment.