Hi Chris,
thank you again and sorry for the very late response.
I was able to try your script only yesterday and performing a "classic" wRSF (without the formula argument) the analysis went well.
However, the problems raised when I try to use the formula argument inspecting the effect of day/night on the selection of only one covariate.
If I try to use the formula argument it returns an error for an animal with few GPS locations (~130 locations):
"RSF code is isotropic for the moment.
Some rasters are not loaded in RAM and may be slow to process. See help("raster::readAll").
Users are responsible for standardizing rasters when formula argument is supplied.
Error in dim(RET) <- c(nrow(data), dim(envir)[1], length(term)) :
dims [product 6528] do not match the length of object [8]"
If I try with an animal with much more locations (~1400 locations) it is very time consuming (I started 20 hours ago, and it is still running) and honestly I do not know if it will work. It seems like too much time, perhaps something is not going well:
"RSF code is isotropic for the moment.
Maximizing likelihood.
Calculating Hessian.
Calculating REML gradient.
Calculating REML Hessian.
Some rasters are not loaded in RAM and may be slow to process. See help("raster::readAll").
Users are responsible for standardizing rasters when formula argument is supplied.
Maximizing likelihood @ n=46715"
If you need, I can privately provide you all the files and scripts I'm using.
Best,
Lorenzo