Skip to content

Commit e01e674

Browse files
Use vapply_1c
1 parent 653d798 commit e01e674

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/tables.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ tables = function(mb=type_size, order.col="NAME", width=80L,
7171
if (recursive) " (recursively)" else "")
7272
return(invisible(data.table(NULL)))
7373
}
74-
info = data.table(NAME=vapply(found_items, `[[`, "name", FUN.VALUE=character(1L)),
74+
info = data.table(NAME=vapply_1c(found_items, `[[`, "name"),
7575
NROW=0L, NCOL=0L, MB=0.0, COLS=list(), KEY=list(), INDICES=list())
7676
for (i in seq_along(found_items)) { # avoid rbindlist(lapply(DT_names)) in case of a large number of tables
7777
DT = found_items[[i]]$obj

0 commit comments

Comments
 (0)