Closed smar-git closed 3 years ago
Note: May be related to #45
The issue seems to have been already solved in the development version. There I instead got a different error message:
Error in ipoints(samplers, domain$coordinates, project = TRUE, group = samp.dim) :
object 'ips' not found
I traced this error to samplers not supporting inla.mesh.segment
objects, partly because they are more similar to SpatialLines
than SpatialPolygons
(it does support mesh objects).
The workaround is to supply a SpatialPolygons
object instead. Replacing the boundary
definition with
boundary <- SpatialPolygons(list(Polygons(list(Polygon(loc.bnd)),
ID = "boundary")))
solved the problem.
I recommend using the current development version, 2.1.13.999 until the new backend code is ready for use.
Also, inlabru/INLA should either add conversion from inla.mesh.segment
to Spatial*
objects (the other way is supported) or add a check that the samplers information is of a supported type, so it can give a more informative error message.
Hi, I made a minimal example where i get the error Error in INLA::f(xxx, ..., group = group, model = model) : object 'period' not found even though 'period' is present in dataframe