Skip to content

Commit

Permalink
fix: fixed an issue of a solitary NA as var_labels passed to analyze
Browse files Browse the repository at this point in the history
  • Loading branch information
kpagacz committed Nov 22, 2024
1 parent 88428b3 commit ed93699
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/colby_constructors.R
Original file line number Diff line number Diff line change
Expand Up @@ -1113,6 +1113,7 @@ analyze <- function(lyt,
section_div = NA_character_) {
show_labels <- match.arg(show_labels)
subafun <- substitute(afun)
var_labels <- vapply(var_labels, function(label) ifelse(is.na(label), NA_character_, label), character(1))
if (
is.name(subafun) &&
is.function(afun) &&
Expand Down

0 comments on commit ed93699

Please sign in to comment.