Skip to content

Commit

Permalink
Merge branch 'main' of github.com:r-spatial/spdep
Browse files Browse the repository at this point in the history
  • Loading branch information
rsbivand committed Aug 7, 2023
2 parents 3d0dfb2 + b92e8db commit fbf48ef
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions man/localC.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ if (run) {
}
if (run) {
if (require(parallel, quietly=TRUE)) {
ncpus <- detectCores(logical=FALSE)-1L
ncpus <- max(2L, detectCores(logical=FALSE), na.rm = TRUE)-1L
# test with single core
if (ncpus > 1L) ncpus <- 1L
cores <- get.coresOption()
Expand Down Expand Up @@ -327,7 +327,7 @@ if (run) {
}
if (run) {
if (require(parallel, quietly=TRUE)) {
ncpus <- detectCores(logical=FALSE)-1L
ncpus <- max(2L, detectCores(logical=FALSE), na.rm = TRUE)-1L
# test with single core
if (ncpus > 1L) ncpus <- 1L
cores <- get.coresOption()
Expand Down
2 changes: 1 addition & 1 deletion man/set.mcOption.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ get.ClusterOption()
\examples{
ls(envir=spdep:::.spdepOptions)
if (require(parallel, quietly=TRUE)) {
nc <- detectCores(logical=FALSE)-1L
nc <- max(2L, detectCores(logical=FALSE), na.rm = TRUE)-1L
nc
# set nc to 1L here
if (nc > 1L) nc <- 1L
Expand Down
2 changes: 1 addition & 1 deletion man/skater.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ mst.bh <- mstree(nb.w,5)
### three groups with no restriction
system.time(res1 <- skater(mst.bh[,1:2], dpad, 2))
library(parallel)
nc <- detectCores(logical=FALSE)-1L
nc <- max(2L, detectCores(logical=FALSE), na.rm = TRUE)-1L
# set nc to 1L here
if (nc > 1L) nc <- 1L
coresOpt <- get.coresOption()
Expand Down

0 comments on commit fbf48ef

Please sign in to comment.