Skip to content

Commit 81ba8de

Browse files
committed
Extract variable before return
1 parent 45bccc8 commit 81ba8de

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

R/subsetting.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,8 @@ NULL
179179
value <- list(value)
180180
names(value) <- names(j)
181181

182-
tbl_subassign(x, i, j, value, i_arg = i_arg, j_arg = j_arg, value_arg = value_arg)
182+
out <- tbl_subassign(x, i, j, value, i_arg = i_arg, j_arg = j_arg, value_arg = value_arg)
183+
out
183184
}
184185

185186

@@ -288,7 +289,8 @@ NULL
288289
}
289290
}
290291

291-
tbl_subassign(x, i, j, value, i_arg, j_arg, substitute(value))
292+
out <- tbl_subassign(x, i, j, value, i_arg, j_arg, substitute(value))
293+
out
292294
}
293295

294296
vectbl_as_row_index <- function(i, x, i_arg, assign = FALSE) {

0 commit comments

Comments
 (0)