Browse code

[HOTFIX] Fixed code that broke vignette

Giulia Pais authored on 05/10/2022 09:22:22
Showing 1 changed files

... ...
@@ -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)