I have an old inlabru script that runs a LGCP model with non-linear fixed effects. The code and data are attached. This file was from about two years ago, so it wasn't updated. Now I am coming back to it again, but I can no longer run the script and it is giving me the following error:
iinla: Iteration 1 [max:10]
readlink: illegal option -- f
usage: readlink [-n] [file ...]
/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/INLA/bin/mac.arm64/inla.run: line 65: ./: is a directory
/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/INLA/bin/mac.arm64/inla.run: line 71: /Users/davidolohowski/Desktop/UDG-Perseus/: is a directory
/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/INLA/bin/mac.arm64/inla.run: line 71: exec: /Users/davidolohowski/Desktop/UDG-Perseus/: cannot execute: Undefined error: 0
Error in inla.inlaprogram.has.crashed() :
The inla-program exited with an error. Unless you interupted it yourself, please rerun with verbose=TRUE and check the output carefully.
If this does not help, please contact the developers at <
he...@r-inla.org>.
*** inla.core.safe: inla.program has crashed: rerun to get better initial values. try=1/1
readlink: illegal option -- f
usage: readlink [-n] [file ...]
/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/INLA/bin/mac.arm64/inla.run: line 65: ./: is a directory
/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/INLA/bin/mac.arm64/inla.run: line 71: /Users/davidolohowski/Desktop/UDG-Perseus/: is a directory
/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/INLA/bin/mac.arm64/inla.run: line 71: exec: /Users/davidolohowski/Desktop/UDG-Perseus/: cannot execute: Undefined error: 0
Error in inla.inlaprogram.has.crashed() :
The inla-program exited with an error. Unless you interupted it yourself, please rerun with verbose=TRUE and check the output carefully.
If this does not help, please contact the developers at <
he...@r-inla.org>.
Warning in iinla(model = info[["model"]], lhoods = info[["lhoods"]], options = info[["options"]]) :
iinla: Problem in inla: Error in inla.core.safe(formula = formula, family = family, contrasts = contrasts, :
*** Failed to get good enough initial values. Maybe it is due to something else.
iinla: Problem in inla: 1: system.time(fit <- lgcp(components = cmp, data = spv, samplers = region,
domain = list(coordinates = v_mesh), formula = form, options = list(br [...]
bru_verbose = TRUE), control.inla = list(int.strategy = "ccd"))))
2: lgcp(components = cmp, data = spv, samplers = region, domain = list(coordi [...]
formula = form, options = list(bru_options(bru_options_get(),
bru_verbose = TRUE), control.inla = list(int.strategy = "ccd")))
3: bru(components, lik, options = options, .envir = .envir)
4: iinla(model = info[["model"]], lhoods = info[["lhoods"]], options = info[[ [...]
5: fm_try_callstack(...)
6: do.call(INLA::inla, inla.options.merged, envir = environment(model$effects))
7: (function (formula = NULL, family = "gaussian", contrasts = NU [... truncated]
iinla: Giving up and returning last successfully obtained result for diagnostic purposes.