You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
library(sf)
library(rgeoda)
# creating test geometry with random values
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(geom = grid)
grid$value = runif(nrow(grid))
# assigning weights
w = queen_weights(grid)
# looping the redcap algorithm
# using print to see after how many iterations R crashes
for(i in 100:1){
print(i)
redcap(10, w, grid[,"value"])
}
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: