# \donttest{
if (require("spatstat.geom") &&
bru_safe_sp() &&
require("sp")) {
# Load Gorilla data
data("gorillas", package = "inlabru")
# Use nest locations and survey boundary to create a spatstat ppp object
gp <- spatial.to.ppp(gorillas$nests, gorillas$boundary)
class(gp)
# Plot it
plot(gp)
}
# }
Run the code above in your browser using DataLab