Skip to content

Commit

Permalink
Allow using NULL as y_lab
Browse files Browse the repository at this point in the history
  • Loading branch information
damianooldoni committed Jun 26, 2024
1 parent ccfec34 commit 21a1ce2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/indicator_introduction_year.R
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@ indicator_introduction_year <- function(df,
msg = "Argument first_observed has to be a character."
)
assertable::assert_colnames(df, first_observed, only_colnames = FALSE)
assertthat::assert_that(is.character(x_lab),
assertthat::assert_that(is.character(x_lab) | is.null(x_lab),
msg = "Argument x_lab has to be a character or NULL."
)
assertthat::assert_that(is.character(y_lab),
assertthat::assert_that(is.character(y_lab) |is.null(y_lab),
msg = "Argument y_lab has to be a character or NULL."
)

Expand Down

0 comments on commit 21a1ce2

Please sign in to comment.