Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion r/tools/nixlibs.R
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,8 @@ 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()
# detectCores() returns NA if number of cores is unknown. Set ncores to 1 if NA.
ncores <- max(1, parallel::detectCores(), na.rm = TRUE)
Comment thread
rok marked this conversation as resolved.
Comment thread
rok marked this conversation as resolved.
if (!not_cran) {
ncores <- min(ncores, 2)
}
Expand Down
Loading