The fm_unify_coords.sf function is duplicated here. The second definition
raises an error when an sf object is used.
library(inlabru)
#> Loading required package: fmesher
data("gorillas_sf")
fm_mesh_2d_inla(loc = gorillas_sf$nests,
max.edge = 40)
#> Error in sf::st_sfc(x): use st_as_sfc() to extract geometries from an sf object
The
fm_unify_coords.sf
function is duplicated here. The second definition raises an error when ansf
object is used.Created on 2024-03-27 with reprex v2.1.0