the concept will work for essentially anything.
if you have a covariate x and want to check its dependence in time, then
y ~ x + ...
is replaced with
y ~ f(time, x, model="...") + ..
where you have to add the model for the regression coefficient, like
model="rw1",constr=FALSE
or
model="rw2",constr=FALSE
On Wed, 2024-07-17 at 12:30 -0700, 'Alexander Jack' via R-inla discussion group