Skip to content

Commit

Permalink
Apply suggested change
Browse files Browse the repository at this point in the history
Co-authored-by: Pawel Rucki <[email protected]>
Signed-off-by: Emily de la Rua <[email protected]>
  • Loading branch information
edelarua and pawelru authored Feb 27, 2024
1 parent 9710a2a commit 9228005
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/formatters_var_labels.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ col_labels <- function(x, fill = FALSE) {
return(character(0L))
}

labels <- lapply(x, function(x) unname(attr(x, "label")))
labels <- lapply(x, function(x) as.vector(attr(x, "label")[[1]]))

nulls <- vapply(labels, is.null, logical(1L))
if (any(nulls)) {
Expand Down

0 comments on commit 9228005

Please sign in to comment.