Skip to content

Commit

Permalink
fix: deal with minor check issues
Browse files Browse the repository at this point in the history
  • Loading branch information
edalfon committed Apr 25, 2024
1 parent ce75e1d commit 53068e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/assert.R
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@ assert <- function(.data, ..., msg = "Assertion does not hold") {
)
cat(msg)

.condition_eval -> NULL
.assert_fails <- dplyr::mutate(.data, .condition_eval = condition_eval)
if (rlang::is_interactive()) {
View(.assert_fails) # TODO: should we sample?
utils::View(.assert_fails) # TODO: should we sample?
} else {
.assert_fails |>
dplyr::filter(!.condition_eval) |>
Expand Down

0 comments on commit 53068e0

Please sign in to comment.