Skip to content

Commit 7b0acc0

Browse files
committed
closes #230
1 parent bd5ef47 commit 7b0acc0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

R/qenv-c.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ c.qenv <- function(...) {
8989
stop(join_validation)
9090
}
9191

92-
x@code <- union(x@code, y@code)
92+
x_id <- vapply(x@code, attr, which = "id", integer(1))
93+
y_id <- vapply(y@code, attr, which = "id", integer(1))
94+
x@code <- c(x@code, y@code[!y_id %in% x_id])
9395

9496
# insert (and overwrite) objects from y to x
9597
x@.xData <- rlang::env_clone(x@.xData, parent = parent.env(.GlobalEnv))

0 commit comments

Comments
 (0)