Skip to content

Commit

Permalink
Quick mode should only be run with allocate_per_obs == T
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre-Armatowski authored and cyianor committed Dec 6, 2024
1 parent 646d398 commit a41ce14
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/scregclust.R
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,10 @@ scregclust <- function(expression,
cli::cli_abort("{.var quick_mode} needs to be TRUE or FALSE")
}

if(quick_mode && !allocate_per_obs){
cli::cli_abort("{.var quick_mode} is only available when {.var allocate_per_obs} is TRUE")
}

if(!(is.numeric(percent) && 0 <= percent && percent <= 1)){
cli::cli_abort("{.var percent} needs to be numeric in [0, 1]")
}
Expand Down

0 comments on commit a41ce14

Please sign in to comment.