Open MattIwicki opened 2 years ago
Note: This problem does not occur for cpu_threads = 1
(when parallel processing is not used).
library(sf)
library(rgeoda)
sfc = st_sfc(st_polygon(list(rbind(c(0,0), c(1,0), c(1,1), c(0,0)))))
grid = st_make_grid(sfc, cellsize = 0.02, square = F)
grid = st_sf(value = runif(length(grid)), geom = grid)
w = queen_weights(grid)
for(i in 100:1){
print(i)
redcap(10, w, grid[,"value"], cpu_threads = 1)
}
Related issue: https://github.com/GeoDaCenter/rgeoda/issues/27
Hi!
I found that both Redcap and Skater algorithms randomly crash R when given too many polygons. The crash was recreated on different machines, including RStudio Cloud.