... | ... |
@@ -842,7 +842,7 @@ |
842 | 842 |
} |
843 | 843 |
|
844 | 844 |
if (getOption("ISAnalytics.parallel_processing", default = TRUE) == TRUE & |
845 |
- max_workers > 1) { |
|
845 |
+ (!is.null(max_workers) && max_workers > 1)) { |
|
846 | 846 |
# Set up parallel workers |
847 | 847 |
old_be <- doFuture::registerDoFuture() |
848 | 848 |
old_plan <- future::plan(future::multisession, workers = max_workers) |