Older inlabru code cannot run anymore

85 views
Skip to first unread message

David Dayi Li

unread,
Nov 20, 2023, 1:00:21 AM11/20/23
to R-inla discussion group
Dear INLA team,

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.

Any help on resolving this is much appreciated! Thank you very much!

Best,
David
v11acs_GC.csv
source.R

Håvard Rue

unread,
Nov 20, 2023, 2:51:44 AM11/20/23
to David Dayi Li, R-inla discussion group

your MacOS is to old, please upgrade.
> --
> You received this message because you are subscribed to the Google
> Groups "R-inla discussion group" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to r-inla-discussion...@googlegroups.com.
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/r-inla-discussion-group/0a407c21-6233-4f95-804f-a716a49a0958n%40googlegroups.com
> .

--
Håvard Rue
hr...@r-inla.org

Reply all
Reply to author
Forward
0 new messages