From 041bb50646d59b073d976e4b926ae966d67f1c59 Mon Sep 17 00:00:00 2001 From: wlandau-lilly Date: Sat, 28 Oct 2017 00:49:10 -0400 Subject: [PATCH] Avoid submitting imports as future_lapply jobs --- R/future.R | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/R/future.R b/R/future.R index 2a52d4186..c5cbb85e5 100644 --- a/R/future.R +++ b/R/future.R @@ -4,6 +4,10 @@ run_future_lapply <- function(config){ } worker_future_lapply <- function(targets, hash_list, config){ + targets <- intersect(targets, config$plan$target) + if (!length(targets)){ + return() + } future::future_lapply( x = targets, FUN = build_distributed,