Andrea-Havron / clustTMB

spatial finite mixture model R package
https://andrea-havron.github.io/clustTMB/
4 stars 0 forks source link

refactor: INLA::inla.mesh.2d is deprecated #10

Closed Andrea-Havron closed 11 months ago

Andrea-Havron commented 12 months ago

update using fmesher::fm_mesh_2d_inla()

Andrea-Havron commented 12 months ago

Can INLA::spde be updated to fmesher::fm_fem(mesh, order = 2, ...)? If so, it might be possible to switch dependency from INLA to fmesher.

with

spde <- INLA::inla.spde2.matern(mesh)
M0 <- spde$param.inla$M0
M1 <- spde$param.inla$M1
M2 <- spde$param.inla$M2

INLA dependent functions:

https://inlabru-org.github.io/fmesher/articles/inla_conversion.html

Andrea-Havron commented 12 months ago

also refactor all GHA to remove INLA install dependency. Can I just update GHA back to using nmfs-fish-tools/ghactions4r?

Andrea-Havron commented 11 months ago