# \donttest{
grid <- make.grid(8, 8, spacing = 20, detector = 'proximity')
# method = "none" uses the shortcut variance
tmp <- optimalSpacing(D = 5, traps = grid, detectfn = "HHN", detectpar =
list(lambda0 = 1, sigma = 20), noccasions = 1, nx = 32,
fit.function = "secr.fit", method = "none", simulationR = seq(1.2,2.2,0.2))
minsimRSE(tmp, plt = TRUE)
# }
Run the code above in your browser using DataLab