Skip to content

Commit

Permalink
namespace is_true
Browse files Browse the repository at this point in the history
  • Loading branch information
JosiahParry committed Nov 26, 2024
1 parent e53c10a commit 67f6532
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/standalone-purrr.R
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ accumulate_right <- function(.x, .f, ..., .init) {
Reduce(f, .x, init = .init, right = TRUE, accumulate = TRUE)
}

detect <- function(.x, .f, ..., .right = FALSE, .p = is_true) {
detect <- function(.x, .f, ..., .right = FALSE, .p = rlang::is_true) {
.p <- rlang::as_function(.p, env = rlang::global_env())
.f <- rlang::as_function(.f, env = rlang::global_env())

Expand All @@ -210,7 +210,7 @@ detect <- function(.x, .f, ..., .right = FALSE, .p = is_true) {
}
NULL
}
detect_index <- function(.x, .f, ..., .right = FALSE, .p = is_true) {
detect_index <- function(.x, .f, ..., .right = FALSE, .p = rlang::is_true) {
.p <- rlang::as_function(.p, env = rlang::global_env())
.f <- rlang::as_function(.f, env = rlang::global_env())

Expand Down

0 comments on commit 67f6532

Please sign in to comment.