Skip to content

Commit 3bd837a

Browse files
committed
R reports unset environment variables as empty string
1 parent 926319d commit 3bd837a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

singlecell/resources/chunks/Functions.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ options(future.globals.maxSize = Inf)
9393

9494
options('Seurat.memsafe' = TRUE)
9595

96-
if (!is.null(Sys.getenv('SEURAT_MAX_THREADS'))) {
96+
if (Sys.getenv('SEURAT_MAX_THREADS') != '') {
9797
print(paste0('Setting future::plan workers to: ', Sys.getenv('SEURAT_MAX_THREADS')))
98-
future::plan(strategy='multiprocess', workers=Sys.getenv('SEURAT_MAX_THREADS'))
98+
future::plan(strategy='multisession', workers=Sys.getenv('SEURAT_MAX_THREADS'))
9999
}

0 commit comments

Comments
 (0)