thisisnic commented on code in PR #50317:
URL: https://github.com/apache/arrow/pull/50317#discussion_r3520858374


##########
r/tools/nixlibs.R:
##########
@@ -526,7 +526,7 @@ build_libarrow <- function(src_dir, dst_dir) {
   # Set up make for parallel building
   # CRAN policy says not to use more than 2 cores during checks
   # If you have more and want to use more, set MAKEFLAGS or NOT_CRAN
-  ncores <- parallel::detectCores()
+  ncores <- max(1, parallel::detectCores(), na.rm = TRUE)

Review Comment:
   Is this a typo; should it be `min()`? 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to