Skip to content

Commit c4cff93

Browse files
no need to agend[1]=NULL, just drop if from the overwrite
1 parent 8f4d931 commit c4cff93

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

R/tables.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ tables = function(mb=type_size, order.col="NAME", width=80L,
3333

3434
while (length(agenda)) {
3535
current_item = agenda[[1L]]
36-
agenda[[1L]] = NULL
3736
x = current_item$obj
3837
x_name = current_item$name
3938
if (is.data.table(x)) {
@@ -56,7 +55,7 @@ tables = function(mb=type_size, order.col="NAME", width=80L,
5655
}
5756
children_to_add[[i]] = list(obj=x[[i]], name=child_name)
5857
}
59-
agenda = c(rev(children_to_add), agenda)
58+
agenda = c(rev(children_to_add), agenda[-1L])
6059
}
6160
}
6261
} else {

0 commit comments

Comments
 (0)