File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -602,27 +602,18 @@ is_tight_sequence_at_end <- function(i_new, n) {
602
602
}
603
603
604
604
tbl_subassign_col <- function (x , j , value ) {
605
- # Assertion
606
- stopifnot(! is.null(names(j )) || length(j ) == 0 )
607
-
608
605
is_data <- ! vapply(value , is.null , NA )
609
606
nrow <- fast_nrow(x )
610
607
611
608
x <- unclass(x )
612
609
613
610
# Grow, assign new names
614
- new_pos <- (j > length(x ))
615
- new <- which(new_pos )
616
-
617
- # Grow, assign new names
611
+ new <- which(j > length(x ))
618
612
if (has_length(new )) {
619
613
length(x ) <- max(j [new ])
620
614
names(x )[ j [new ] ] <- names2(j )[new ]
621
615
}
622
616
623
- # This must work now
624
- names(x )[ j [! new_pos ] ] <- names2(j )[! new_pos ]
625
-
626
617
# Update
627
618
for (jj in which(is_data )) {
628
619
ji <- j [[jj ]]
You can’t perform that action at this time.
0 commit comments