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)