Error in if (lens[3] < max_len) color <- rep(unlist(list(color)), length.out = max_len) :
missing value where TRUE/FALSE needed
This is because nrow(size) returns NULL. As a result, the lens vector doesn't contain all the lengths. A temporary workaround until this gets fixed is to pass a matrix for size:
For example, this code:
Produces the error:
This is because
nrow(size)
returnsNULL
. As a result, thelens
vector doesn't contain all the lengths. A temporary workaround until this gets fixed is to pass a matrix forsize
:Which correctly produces: