Skip to content

Commit

Permalink
Update fct_maxCores.R
Browse files Browse the repository at this point in the history
  • Loading branch information
YonghuiDong committed Sep 7, 2023
1 parent 2c97245 commit 3b65c6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/fct_maxCores.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
#' maxCores()

maxCores <- function(){
return(ifelse(parallel::detectCores() == 1, 1, parallel::detectCores() -1))
return(ifelse(parallel::detectCores() == 1, 1, parallel::detectCores()-1))
}

0 comments on commit 3b65c6e

Please sign in to comment.