Skip to content

Commit 93af944

Browse files
committed
Add a comment about something that confused me
1 parent c259c1d commit 93af944

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

R/chop.R

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,14 @@ df_unchop <- function(x, ..., ptype = NULL, keep_empty = FALSE, error_call = cal
254254
col_sizes <- x_sizes[[i]]
255255

256256
if (!col_is_list) {
257+
# Optimize rare non list-cols
257258
if (!is_null(col_ptype)) {
258-
col <- vec_cast(col, col_ptype, x_arg = col_name, call = error_call)
259+
col <- vec_cast(
260+
x = col,
261+
to = col_ptype,
262+
x_arg = col_name,
263+
call = error_call
264+
)
259265
}
260266
out_cols[[i]] <- vec_slice(col, out_loc)
261267
next

0 commit comments

Comments
 (0)