Skip to content

Commit

Permalink
adjustments: use rlang and collapse
Browse files Browse the repository at this point in the history
  • Loading branch information
RossanaTat committed Sep 25, 2024
1 parent 90e9b7a commit f18bd38
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions R/joyn-merge.R
Original file line number Diff line number Diff line change
Expand Up @@ -543,13 +543,23 @@ joyn <- function(x,
if (verbose == TRUE) {
#joyn_msg(msg_type)

notes_count <- sum(
.joynenv$joyn_msgs$type %in% c("info", "note")
)
# notes_count <- sum(
# .joynenv$joyn_msgs$type %in% c("info", "note")
# )
#
# warn_count <- sum(
# .joynenv$joyn_msgs$type == "warn"
# )

type_element <- rlang::env_get(.joynenv,
"joyn_msgs")$type

warn_count <- fsum(type_element == "warn",
na.rm = TRUE)

notes_count <- fsum(type_element %in% c("info", "note"),
na.rm = TRUE)

warn_count <- sum(
.joynenv$joyn_msgs$type == "warn"
)

warning_type <- "warn"
info_type <- "info"
Expand Down

0 comments on commit f18bd38

Please sign in to comment.