Skip to content

Commit 2a59fa9

Browse files
Some enviroments might be locked
1 parent bcc7db6 commit 2a59fa9

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Package: future
2-
Version: 1.34.0-9111
2+
Version: 1.34.0-9112
33
Title: Unified Parallel and Distributed Processing in R for Everyone
44
Imports:
55
digest,

R/expressions.R

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -464,8 +464,11 @@ evalFuture <- function(
464464
for (name in names) {
465465
if (exists(name, envir = env, inherits = FALSE)) {
466466
value <- get(name, envir = env, inherits = FALSE)
467-
assign(name, value = value, envir = oldEnv, inherits = FALSE)
468-
rm(list = name, envir = env, inherits = FALSE)
467+
## Environment might be locked
468+
tryCatch({
469+
rm(list = name, envir = env, inherits = FALSE)
470+
assign(name, value = value, envir = oldEnv, inherits = FALSE)
471+
}, error = identity)
469472
}
470473
}
471474
envs <- c(envs, env)

0 commit comments

Comments
 (0)