We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7be1d1 commit 4387ed7Copy full SHA for 4387ed7
R/layer.R
@@ -972,10 +972,8 @@ normalise_label <- function(label) {
972
return(NULL)
973
}
974
if (obj_is_list(label)) {
975
- # Ensure that each element in the list has length 1
+ # Ensure no elements are empty
976
label[lengths(label) == 0] <- ""
977
- truncate <- !vapply(label, is.call, logical(1)) # Don't mess with call/formula
978
- label[truncate] <- lapply(label[truncate], `[`, 1)
979
980
if (is.expression(label)) {
981
# Classed expressions, when converted to lists, retain their class.
0 commit comments