Skip to content

Commit f74ca93

Browse files
authored
Merge pull request #150 from jeroen/patch-1
Deal with NA returns from detectCores
2 parents 1264f8c + e3bd2c7 commit f74ca93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/cmake_call.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
: ${R_HOME=$(R RHOME)}
44
RSCRIPT_BIN=${R_HOME}/bin/Rscript
5-
NCORES=`${RSCRIPT_BIN} -e "cat(min(2, parallel::detectCores(logical = FALSE)))"`
5+
NCORES=`${RSCRIPT_BIN} -e "cat(min(2, parallel::detectCores(logical = FALSE), na.rm=TRUE))"`
66

77
cd src
88

0 commit comments

Comments
 (0)