From 08d140fb47abbeb5721139eb89bef69ea86cbdb0 Mon Sep 17 00:00:00 2001 From: Pavankumar Videm Date: Fri, 10 Jan 2025 12:29:35 +0100 Subject: [PATCH] also check whether the GALAXY_SLOTS is not empty --- tools/spacexr/spacexr_cside.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/spacexr/spacexr_cside.xml b/tools/spacexr/spacexr_cside.xml index 87ff20ee581..fef30fd9776 100644 --- a/tools/spacexr/spacexr_cside.xml +++ b/tools/spacexr/spacexr_cside.xml @@ -54,7 +54,7 @@ myRCTD <- readRDS('inputs/rctd.rds') # set max cores cores = Sys.getenv("GALAXY_SLOTS", unset= NA) -if (is.na(cores)) { +if (is.na(cores) || !nzchar(cores)) { cores = 1 } myRCTD@config[["max_cores"]] <- as.numeric(cores)