Skip to content

Commit

Permalink
compact() is no longer used (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley authored Jun 26, 2024
1 parent 405a4ca commit cbc88d0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ defer <- function(expr, frame = parent.frame(), after = FALSE) {

`%||%` <- function(a, b) if (is.null(a)) b else a

compact <- function(x) {
x[!vapply(x, is.null, logical(1))]
}

env_var_is_true <- function(x) {
isTRUE(as.logical(Sys.getenv(x, "false")))
}

0 comments on commit cbc88d0

Please sign in to comment.