From 7a1377074c377bd8a0b20db6bc24a289b16f5380 Mon Sep 17 00:00:00 2001 From: Oliver Boix <95433070+0liver0815@users.noreply.github.com> Date: Fri, 15 Sep 2023 11:43:28 +0200 Subject: [PATCH] Correct error. --- R/Design-methods.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/Design-methods.R b/R/Design-methods.R index 7f07e459f..a7d677331 100644 --- a/R/Design-methods.R +++ b/R/Design-methods.R @@ -93,7 +93,7 @@ get_result_list <- function( } else { # Process all simulations. cores <- min( - safeInteger(parallel), + safeInteger(n_cores), parallelly::availableCores() ) @@ -144,7 +144,7 @@ get_result_list <- function( # Stop the cluster. parallel::stopCluster(cl) - return(res) + res } }