Skip to content

Commit

Permalink
doc(calc_designstorm): assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
dimfalk committed Mar 3, 2024
1 parent 564ddad commit 064cb09
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions R/calc_designstorm.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,12 @@ calc_designstorm <- function(x = NULL,
checkmate::assert_tibble(x)

allowed_d <- attr(x, "durations_min")
checkmate::assert_numeric(d, len = 1)
checkmate::assert_choice(d, allowed_d)

allowed_tn <- attr(x, "returnperiods_a")
checkmate::assert_numeric(tn, len = 1)
checkmate::assert_choice(tn, allowed_tn)

allowed_type <- c("EulerI", "EulerII")
checkmate::assert_character(type, len = 1)
checkmate::assert_choice(type, allowed_type)

# pre-processing -------------------------------------------------------------
Expand Down

0 comments on commit 064cb09

Please sign in to comment.