File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed
Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 11Package: future
2- Version: 1.68.0-9014
2+ Version: 1.68.0-9015
33Title: Unified Parallel and Distributed Processing in R for Everyone
44Depends:
55 R (>= 3.2.0)
Original file line number Diff line number Diff line change 1717 1 unknown future arguments: 'interrupts'" for third-party future
1818 backends.
1919
20+ * ` future(..., packages = "missing-package") ` did result in an error
21+ despite requesting a non-installed package.
22+
2023## Deprecated and Defunct
2124
2225 * Remove argument ` earlySignal ` from ` future() ` , ` futureAssign() ` ,
Original file line number Diff line number Diff line change @@ -667,9 +667,12 @@ evalFutureInternal <- function(data) {
667667 # # -----------------------------------------------------------------
668668 # # Load and attached backend packages
669669 # # -----------------------------------------------------------------
670- withCallingHandlers({
670+ res <- withCallingHandlers({
671671 attachPackages(backendPackages )
672672 }, condition = onEvalCondition )
673+ if (inherits(res , " error" )) {
674+ stop(FutureEvalError(sprintf(" Failed to attach one or more future-backend packages: %s" , conditionMessage(res ))))
675+ }
673676
674677
675678 # # -----------------------------------------------------------------
@@ -682,9 +685,12 @@ evalFutureInternal <- function(data) {
682685 ... future.mc.cores.old <- getOption(" mc.cores" )
683686
684687 # # Load and attached packages
685- withCallingHandlers({
688+ res <- withCallingHandlers({
686689 attachPackages(packages )
687690 }, condition = onEvalCondition )
691+ if (inherits(res , " error" )) {
692+ stop(FutureEvalError(sprintf(" Failed to attach one or more packages: %s" , conditionMessage(res ))))
693+ }
688694
689695 # # Note, we record R options and environment variables _after_
690696 # # loading and attaching packages, in case they set options/env vars
You can’t perform that action at this time.
0 commit comments