Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions R/helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ check_that <- function(x, predicate, message, pf = parent.frame()) {
}


#' A custom error message generator for the `check_that` function
#' @param text The main text of the error message
#' @export
ct_error_msg <- \(text) paste0("{.fn check_that}: ", text)

Expand Down Expand Up @@ -63,6 +65,8 @@ check_vec <- function(
}
}

#' A custom error message generator for the `check_vec` function
#' @inheritParams ct_error_msg
#' @export
cv_error_msg <- \(text) paste0("{.fn check_vec}: ", text)

Expand Down Expand Up @@ -108,6 +112,8 @@ check_scalar_type <- function(
}
}

#' A custom error message generator for the `check_scalar_type` function
#' @inheritParams ct_error_msg
#' @export
cst_error_msg <- \(text) paste0("{.fn check_scalar_type}: ", text)

Expand Down
14 changes: 14 additions & 0 deletions man/cst_error_msg.Rd

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

14 changes: 14 additions & 0 deletions man/ct_error_msg.Rd

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

14 changes: 14 additions & 0 deletions man/cv_error_msg.Rd

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

Loading