Skip to content

Commit ce726c2

Browse files
i am wrong (need to remove the item for non-list entries)
1 parent c4cff93 commit ce726c2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

R/tables.R

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

3434
while (length(agenda)) {
3535
current_item = agenda[[1L]]
36+
agenda[[1L]] = NULL
3637
x = current_item$obj
3738
x_name = current_item$name
3839
if (is.data.table(x)) {
@@ -55,7 +56,7 @@ tables = function(mb=type_size, order.col="NAME", width=80L,
5556
}
5657
children_to_add[[i]] = list(obj=x[[i]], name=child_name)
5758
}
58-
agenda = c(rev(children_to_add), agenda[-1L])
59+
agenda = c(rev(children_to_add), agenda)
5960
}
6061
}
6162
} else {

0 commit comments

Comments
 (0)