Skip to content

Commit

Permalink
adding note for #10
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanbeaudette committed Feb 13, 2018
1 parent da8c582 commit a7e7e2d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/sample.by.poly.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ constantDensitySampling <- function(x, polygon.id='pID', parallel=FALSE, cores=N
# retain proj4 information
p4s <- proj4string(x)

## see https://github.com/ncss-tech/sharpshootR/issues/10
## NOT ready for prime time, usually slower than sequential
## https://github.com/ncss-tech/sharpshootR/issues/10
## requires slightly more RAM
Expand All @@ -31,7 +32,7 @@ constantDensitySampling <- function(x, polygon.id='pID', parallel=FALSE, cores=N
# init nodes
## TODO: optimal setting for useXDR ?
## TODO: makeCluster() [platform agnostic] or makePSOCKcluster() [Windoze]
cl <- parallel::makePSOCKcluster(cores, useXDR=TRUE)
cl <- parallel::makeCluster(cores, useXDR=TRUE)

## probably not required?
# # setup clusters
Expand Down

0 comments on commit a7e7e2d

Please sign in to comment.