Skip to content

Commit

Permalink
Merge pull request #3 from edalfon/f-assert-on-multiple-conditions
Browse files Browse the repository at this point in the history
F assert on multiple conditions
  • Loading branch information
edalfon authored Jun 19, 2024
2 parents 4e7c387 + 7b90b25 commit 8042a60
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: efun
Title: Miscellaneous Functions by E
Version: 0.3.3
Version: 0.3.4
Authors@R:
person(given = "Eduardo",
family = "Alfonso-Sierra",
Expand Down
4 changes: 3 additions & 1 deletion R/assert.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
#' @param .data A data frame containing the variables used in the conditions.
#' @param ... One or more expressions to be evaluated within the data frame.
#' @param msg A character vector specifying the message to include in the error
#' message if the assertion fails.
#' message if the assertion fails.
#' @param na.rm passed to `all()`: logical. If true NA values are removed
#' before the result is computed.
#'
#' @return The data frame `.data` if all conditions are met. Otherwise, an error
#' is thrown.
Expand Down
5 changes: 4 additions & 1 deletion man/assert.Rd

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

0 comments on commit 8042a60

Please sign in to comment.