Skip to content

Commit 9629fa5

Browse files
ws style
1 parent 9398673 commit 9629fa5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

R/tables.R

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,23 +28,23 @@ tables = function(mb=type_size, order.col="NAME", width=80L,
2828
obj = mget(names, envir=env) # doesn't copy; mget is ok with ... unlike get, #5197
2929
found_items = list()
3030
if (recursive) {
31-
agenda = lapply(seq_along(obj), function(i) list(obj = obj[[i]], name = names[i]))
32-
visited_env = new.env(hash = TRUE)
31+
agenda = lapply(seq_along(obj), function(i) list(obj=obj[[i]], name=names[i]))
32+
visited_env = new.env(hash=TRUE)
3333

3434
while (length(agenda) > 0L) {
3535
current_item = agenda[[1L]]
3636
agenda[[1L]] = NULL
3737
x = current_item$obj
3838
x_name = current_item$name
3939
if (is.data.table(x)) {
40-
found_items[[length(found_items) + 1L]] = list(name = x_name, obj = x)
40+
found_items[[length(found_items) + 1L]] = list(name=x_name, obj=x)
4141
next
4242
}
4343
if (is.list(x) && !is.data.frame(x)) {
4444
# Cycle detection
4545
addr = address(x)
46-
if (exists(addr, envir = visited_env, inherits = FALSE)) next
47-
assign(addr, TRUE, envir = visited_env)
46+
if (exists(addr, envir=visited_env, inherits=FALSE)) next
47+
assign(addr, TRUE, envir=visited_env)
4848

4949
item_names = names(x)
5050
children_to_add = vector("list", length(x))
@@ -54,7 +54,7 @@ tables = function(mb=type_size, order.col="NAME", width=80L,
5454
} else {
5555
paste0(x_name, "[[", i, "]]")
5656
}
57-
children_to_add[[i]] = list(obj = x[[i]], name = child_name)
57+
children_to_add[[i]] = list(obj=x[[i]], name=child_name)
5858
}
5959
agenda = c(rev(children_to_add), agenda)
6060
}

0 commit comments

Comments
 (0)