Access method for bru_log
objects.
Note: Up to version 2.8.0
, bru_log()
was a deprecated alias for
bru_log_message()
. When running on 2.8.0
or earlier, use bru_log_get()
to access the global log, and cat(fit$bru_iinla$log, sep = "\n")
to print a
stored estimation object log.
After version 2.8.0
, use bru_log()
to access the global log, and
bru_log(fit)
to access a stored estimation log.
Usage
bru_log(x = NULL, verbosity = NULL)
# S3 method for class 'character'
bru_log(x, verbosity = NULL)
# S3 method for class 'bru_log'
bru_log(x, verbosity = NULL)
# S3 method for class 'iinla'
bru_log(x, verbosity = NULL)
# S3 method for class 'bru'
bru_log(x, verbosity = NULL)
# S3 method for class 'bru_log'
format(x, ..., timestamp = TRUE, verbosity = FALSE)
# S3 method for class 'bru_log'
print(x, ..., timestamp = TRUE, verbosity = FALSE)
# S3 method for class 'bru_log'
as.character(x, ...)
# S3 method for class 'bru_log'
x[i]
# S3 method for class 'bru_log'
c(...)
# S3 method for class 'bru_log'
length(x)
Arguments
- x
An object that is, contains, or can be converted to, a
bru_log
object. IfNULL
, refers to the globalinlabru
log.- verbosity
integer value for limiting the highest verbosity level being returned.
- ...
further arguments passed to or from other methods.
- timestamp
If
TRUE
, include the timestamp of each message. DefaultTRUE
.- i
indices specifying elements to extract. If
character
, denotes the sequence between bookmarki
and the next bookmark (or the end of the log ifi
is the last bookmark)
Value
bru_log
A bru_log
object, containing a
character vector of log messages, and potentially a vector of bookmarks.
Methods (by generic)
format(bru_log)
: Format abru_log
object for printing. Ifverbosity
isTRUE
, include the verbosity level of each message.print(bru_log)
: Print abru_log
object withcat(x, sep = "\n")
. Ifverbosity
isTRUE
, include the verbosity level of each message.as.character(bru_log)
: Convertbru_log
object to a plaincharacter
vector[
: Extract a subset of abru_log
objectc(bru_log)
: Concatenate severalbru_log
orcharacter
objects into abru_log
object.length(bru_log)
: Obtain the number of log entries into abru_log
object.
Functions
bru_log()
: Extract stored log messages. If non-NULL
, theverbosity
argument determines the maximum verbosity level of the messages to extract.
See also
Other inlabru log methods:
bru_log_bookmark()
,
bru_log_message()
,
bru_log_new()
,
bru_log_offset()
,
bru_log_reset()
Examples
bru_log(verbosity = 2L)
#> 2025-07-28 15:35:15.362562: inlabru loaded
#> 2025-07-28 15:35:15.36306: Clear override options
#> 2025-07-28 15:35:25.673132: bru: Preprocessing
#> 2025-07-28 15:35:25.943337: iinla: Iteration 1 [max:1]
#> 2025-07-28 15:35:26.483963: bru: Preprocessing
#> 2025-07-28 15:35:26.65635: iinla: Iteration 1 [max:1]
#> 2025-07-28 15:35:27.082932: bru: Preprocessing
#> 2025-07-28 15:35:27.253896: iinla: Iteration 1 [max:10]
#> 2025-07-28 15:35:27.641637: iinla: Step rescaling: 27.6% (norm0 = 298.2, norm1 = 362.7, norm01 = 560)
#> 2025-07-28 15:35:27.688151: iinla: Iteration 2 [max:10]
#> 2025-07-28 15:35:28.33975: iinla: Step rescaling: 99.8% (norm0 = 361.5, norm1 = 16.15, norm01 = 362.6)
#> 2025-07-28 15:35:28.389867: iinla: Max deviation from previous: 74400% of SD, and line search is active
#> [stop if: <10% and line search inactive]
#> 2025-07-28 15:35:28.391649: iinla: Iteration 3 [max:10]
#> 2025-07-28 15:35:28.783796: iinla: Step rescaling: 102% (norm0 = 16.15, norm1 = 0.01358, norm01 = 16.15)
#> 2025-07-28 15:35:28.828521: iinla: Max deviation from previous: 748% of SD, and line search is active
#> [stop if: <10% and line search inactive]
#> 2025-07-28 15:35:28.83024: iinla: Iteration 4 [max:10]
#> 2025-07-28 15:35:29.264219: iinla: Max deviation from previous: 11.6% of SD, and line search is inactive
#> [stop if: <10% and line search inactive]
#> 2025-07-28 15:35:29.265912: iinla: Iteration 5 [max:10]
#> 2025-07-28 15:35:29.700085: iinla: Max deviation from previous: 0.214% of SD, and line search is inactive
#> [stop if: <10% and line search inactive]
#> 2025-07-28 15:35:29.701287: iinla: Convergence criterion met.
#> Running final INLA integration step with known theta mode.
#> 2025-07-28 15:35:29.702958: iinla: Iteration 6 [max:10]
#> 2025-07-28 15:35:30.966986: bru: Preprocessing
#> 2025-07-28 15:35:31.066752: iinla: Iteration 1 [max:1]
#> 2025-07-28 15:35:37.62637: bru: Preprocessing
#> 2025-07-28 15:35:37.786541: iinla: Iteration 1 [max:1]
format(bru_log())
#> [1] "2025-07-28 15:35:15.362562: inlabru loaded"
#> [2] "2025-07-28 15:35:15.36306: Clear override options"
#> [3] "2025-07-28 15:35:25.673132: bru: Preprocessing"
#> [4] "2025-07-28 15:35:25.68189: Evaluate component inputs for each observation model"
#> [5] "2025-07-28 15:35:25.68328: bru_input(bru_comp_list)"
#> [6] "2025-07-28 15:35:25.684596: bru_input.bru_comp(x)"
#> [7] "2025-07-28 15:35:25.686121: bru_input(bru_input) for (x)"
#> [8] "2025-07-28 15:35:25.693769: bru_input(bru_input) for (x.group)"
#> [9] "2025-07-28 15:35:25.699594: bru_input(bru_input) for (x.repl)"
#> [10] "2025-07-28 15:35:25.704962: bru_input.bru_comp(Intercept)"
#> [11] "2025-07-28 15:35:25.706215: bru_input(bru_input) for (Intercept)"
#> [12] "2025-07-28 15:35:25.712024: bru_input(bru_input) for (Intercept.group)"
#> [13] "2025-07-28 15:35:25.717171: bru_input(bru_input) for (Intercept.repl)"
#> [14] "2025-07-28 15:35:25.839147: iinla: Start"
#> [15] "2025-07-28 15:35:25.840371: iinla: Evaluate component linearisations"
#> [16] "2025-07-28 15:35:25.841624: Linearise components for each observation model"
#> [17] "2025-07-28 15:35:25.843106: Linearise component 'x'"
#> [18] "2025-07-28 15:35:25.868124: Linearise component 'Intercept'"
#> [19] "2025-07-28 15:35:25.879887: iinla: Evaluate component simplifications"
#> [20] "2025-07-28 15:35:25.881216: Simplify component mappers for each observation model"
#> [21] "2025-07-28 15:35:25.882616: Simplify component 'x'"
#> [22] "2025-07-28 15:35:25.895107: Simplify component 'Intercept'"
#> [23] "2025-07-28 15:35:25.907068: iinla: Evaluate predictor linearisation"
#> [24] "2025-07-28 15:35:25.919362: iinla: Construct inla stack"
#> [25] "2025-07-28 15:35:25.94206: iinla: Model initialisation completed"
#> [26] "2025-07-28 15:35:25.943337: iinla: Iteration 1 [max:1]"
#> [27] "2025-07-28 15:35:26.483963: bru: Preprocessing"
#> [28] "2025-07-28 15:35:26.487353: Evaluate component inputs for each observation model"
#> [29] "2025-07-28 15:35:26.48862: bru_input(bru_comp_list)"
#> [30] "2025-07-28 15:35:26.48984: bru_input.bru_comp(x)"
#> [31] "2025-07-28 15:35:26.491045: bru_input(bru_input) for (x)"
#> [32] "2025-07-28 15:35:26.49873: bru_input(bru_input) for (x.group)"
#> [33] "2025-07-28 15:35:26.504274: bru_input(bru_input) for (x.repl)"
#> [34] "2025-07-28 15:35:26.509173: bru_input.bru_comp(Intercept)"
#> [35] "2025-07-28 15:35:26.510439: bru_input(bru_input) for (Intercept)"
#> [36] "2025-07-28 15:35:26.515327: bru_input(bru_input) for (Intercept.group)"
#> [37] "2025-07-28 15:35:26.52028: bru_input(bru_input) for (Intercept.repl)"
#> [38] "2025-07-28 15:35:26.571532: iinla: Start"
#> [39] "2025-07-28 15:35:26.572703: iinla: Evaluate component linearisations"
#> [40] "2025-07-28 15:35:26.573858: Linearise components for each observation model"
#> [41] "2025-07-28 15:35:26.575124: Linearise component 'x'"
#> [42] "2025-07-28 15:35:26.58794: Linearise component 'Intercept'"
#> [43] "2025-07-28 15:35:26.608473: iinla: Evaluate component simplifications"
#> [44] "2025-07-28 15:35:26.609786: Simplify component mappers for each observation model"
#> [45] "2025-07-28 15:35:26.611097: Simplify component 'x'"
#> [46] "2025-07-28 15:35:26.623507: Simplify component 'Intercept'"
#> [47] "2025-07-28 15:35:26.635596: iinla: Evaluate predictor linearisation"
#> [48] "2025-07-28 15:35:26.641963: iinla: Construct inla stack"
#> [49] "2025-07-28 15:35:26.655124: iinla: Model initialisation completed"
#> [50] "2025-07-28 15:35:26.65635: iinla: Iteration 1 [max:1]"
#> [51] "2025-07-28 15:35:27.082932: bru: Preprocessing"
#> [52] "2025-07-28 15:35:27.086608: Evaluate component inputs for each observation model"
#> [53] "2025-07-28 15:35:27.087894: bru_input(bru_comp_list)"
#> [54] "2025-07-28 15:35:27.089178: bru_input.bru_comp(z)"
#> [55] "2025-07-28 15:35:27.090437: bru_input(bru_input) for (z)"
#> [56] "2025-07-28 15:35:27.098096: bru_input(bru_input) for (z.group)"
#> [57] "2025-07-28 15:35:27.103918: bru_input(bru_input) for (z.repl)"
#> [58] "2025-07-28 15:35:27.109229: bru_input.bru_comp(Intercept)"
#> [59] "2025-07-28 15:35:27.110436: bru_input(bru_input) for (Intercept)"
#> [60] "2025-07-28 15:35:27.115595: bru_input(bru_input) for (Intercept.group)"
#> [61] "2025-07-28 15:35:27.121289: bru_input(bru_input) for (Intercept.repl)"
#> [62] "2025-07-28 15:35:27.174938: iinla: Start"
#> [63] "2025-07-28 15:35:27.176213: iinla: Evaluate component linearisations"
#> [64] "2025-07-28 15:35:27.177419: Linearise components for each observation model"
#> [65] "2025-07-28 15:35:27.178721: Linearise component 'z'"
#> [66] "2025-07-28 15:35:27.190839: Linearise component 'Intercept'"
#> [67] "2025-07-28 15:35:27.20253: iinla: Evaluate component simplifications"
#> [68] "2025-07-28 15:35:27.203773: Simplify component mappers for each observation model"
#> [69] "2025-07-28 15:35:27.205153: Simplify component 'z'"
#> [70] "2025-07-28 15:35:27.216904: Simplify component 'Intercept'"
#> [71] "2025-07-28 15:35:27.228817: iinla: Evaluate predictor linearisation"
#> [72] "2025-07-28 15:35:27.231622: Linearise with respect to component 'z'"
#> [73] "2025-07-28 15:35:27.236227: Linearise with respect to component 'Intercept'"
#> [74] "2025-07-28 15:35:27.239469: iinla: Construct inla stack"
#> [75] "2025-07-28 15:35:27.252674: iinla: Model initialisation completed"
#> [76] "2025-07-28 15:35:27.253896: iinla: Iteration 1 [max:10]"
#> [77] "2025-07-28 15:35:27.633373: iinla: Step rescaling: 61.8%, Contract (norm0 = 3092, norm1 = 2833, norm01 = 560)"
#> [78] "2025-07-28 15:35:27.635854: iinla: Step rescaling: 38.2%, Contract (norm0 = 632.8, norm1 = 468.9, norm01 = 560)"
#> [79] "2025-07-28 15:35:27.639086: iinla: Step rescaling: 27.61%, Approx Optimisation (norm0 = 298.2, norm1 = 362.7, norm01 = 560)"
#> [80] "2025-07-28 15:35:27.64039: iinla: |lin1-lin0| = 560\n <eta-lin1,delta>/|delta| = -318.1\n |eta-lin0 - delta <delta,eta-lin0>/<delta,delta>| = 174.3"
#> [81] "2025-07-28 15:35:27.641637: iinla: Step rescaling: 27.6% (norm0 = 298.2, norm1 = 362.7, norm01 = 560)"
#> [82] "2025-07-28 15:35:27.643348: iinla: Evaluate component linearisations"
#> [83] "2025-07-28 15:35:27.644566: Linearise components for each observation model"
#> [84] "2025-07-28 15:35:27.645867: Linearise component 'z'"
#> [85] "2025-07-28 15:35:27.657544: Linearise component 'Intercept'"
#> [86] "2025-07-28 15:35:27.669246: iinla: Evaluate predictor linearisation"
#> [87] "2025-07-28 15:35:27.671552: Linearise with respect to component 'z'"
#> [88] "2025-07-28 15:35:27.674982: Linearise with respect to component 'Intercept'"
#> [89] "2025-07-28 15:35:27.688151: iinla: Iteration 2 [max:10]"
#> [90] "2025-07-28 15:35:28.331987: iinla: Step rescaling: 162%, Expand (norm0 = 586.7, norm1 = 226.9, norm01 = 362.6)"
#> [91] "2025-07-28 15:35:28.334402: iinla: Step rescaling: 100%, Overstep (norm0 = 362.3, norm1 = 16.18, norm01 = 362.6)"
#> [92] "2025-07-28 15:35:28.337383: iinla: Step rescaling: 99.77%, Approx Optimisation (norm0 = 361.5, norm1 = 16.15, norm01 = 362.6)"
#> [93] "2025-07-28 15:35:28.338598: iinla: |lin1-lin0| = 362.6\n <eta-lin1,delta>/|delta| = -1.44\n |eta-lin0 - delta <delta,eta-lin0>/<delta,delta>| = 16.09"
#> [94] "2025-07-28 15:35:28.33975: iinla: Step rescaling: 99.8% (norm0 = 361.5, norm1 = 16.15, norm01 = 362.6)"
#> [95] "2025-07-28 15:35:28.341411: iinla: Evaluate component linearisations"
#> [96] "2025-07-28 15:35:28.342519: Linearise components for each observation model"
#> [97] "2025-07-28 15:35:28.343731: Linearise component 'z'"
#> [98] "2025-07-28 15:35:28.35982: Linearise component 'Intercept'"
#> [99] "2025-07-28 15:35:28.37149: iinla: Evaluate predictor linearisation"
#> [100] "2025-07-28 15:35:28.373933: Linearise with respect to component 'z'"
#> [101] "2025-07-28 15:35:28.377368: Linearise with respect to component 'Intercept'"
#> [102] "2025-07-28 15:35:28.389867: iinla: Max deviation from previous: 74400% of SD, and line search is active\n [stop if: <10% and line search inactive]"
#> [103] "2025-07-28 15:35:28.391649: iinla: Iteration 3 [max:10]"
#> [104] "2025-07-28 15:35:28.770406: iinla: Step rescaling: 162%, Expand (norm0 = 25.48, norm1 = 9.329, norm01 = 16.15)"
#> [105] "2025-07-28 15:35:28.772956: iinla: Step rescaling: 100%, Overstep (norm0 = 15.9, norm1 = 0.2508, norm01 = 16.15)"
#> [106] "2025-07-28 15:35:28.781327: iinla: Step rescaling: 101.6%, Approx Optimisation (norm0 = 16.15, norm1 = 0.01358, norm01 = 16.15)"
#> [107] "2025-07-28 15:35:28.782639: iinla: |lin1-lin0| = 16.15\n <eta-lin1,delta>/|delta| = -5.412e-06\n |eta-lin0 - delta <delta,eta-lin0>/<delta,delta>| = 0.01358"
#> [108] "2025-07-28 15:35:28.783796: iinla: Step rescaling: 102% (norm0 = 16.15, norm1 = 0.01358, norm01 = 16.15)"
#> [109] "2025-07-28 15:35:28.785444: iinla: Evaluate component linearisations"
#> [110] "2025-07-28 15:35:28.786565: Linearise components for each observation model"
#> [111] "2025-07-28 15:35:28.78785: Linearise component 'z'"
#> [112] "2025-07-28 15:35:28.799338: Linearise component 'Intercept'"
#> [113] "2025-07-28 15:35:28.810666: iinla: Evaluate predictor linearisation"
#> [114] "2025-07-28 15:35:28.812952: Linearise with respect to component 'z'"
#> [115] "2025-07-28 15:35:28.816289: Linearise with respect to component 'Intercept'"
#> [116] "2025-07-28 15:35:28.828521: iinla: Max deviation from previous: 748% of SD, and line search is active\n [stop if: <10% and line search inactive]"
#> [117] "2025-07-28 15:35:28.83024: iinla: Iteration 4 [max:10]"
#> [118] "2025-07-28 15:35:29.20788: iinla: Step rescaling: 162%, Expand (norm0 = 0.02197, norm1 = 0.008393, norm01 = 0.01358)"
#> [119] "2025-07-28 15:35:29.210352: iinla: Step rescaling: 100%, Overstep (norm0 = 0.01358, norm1 = 5.334e-08, norm01 = 0.01358)"
#> [120] "2025-07-28 15:35:29.213313: iinla: Step rescaling: 100%, Approx Optimisation (norm0 = 0.01358, norm1 = 5.327e-08, norm01 = 0.01358)"
#> [121] "2025-07-28 15:35:29.214545: iinla: |lin1-lin0| = 0.01358\n <eta-lin1,delta>/|delta| = 5.962e-11\n |eta-lin0 - delta <delta,eta-lin0>/<delta,delta>| = 5.327e-08"
#> [122] "2025-07-28 15:35:29.220927: iinla: Evaluate component linearisations"
#> [123] "2025-07-28 15:35:29.222116: Linearise components for each observation model"
#> [124] "2025-07-28 15:35:29.223493: Linearise component 'z'"
#> [125] "2025-07-28 15:35:29.234993: Linearise component 'Intercept'"
#> [126] "2025-07-28 15:35:29.246295: iinla: Evaluate predictor linearisation"
#> [127] "2025-07-28 15:35:29.248717: Linearise with respect to component 'z'"
#> [128] "2025-07-28 15:35:29.25204: Linearise with respect to component 'Intercept'"
#> [129] "2025-07-28 15:35:29.264219: iinla: Max deviation from previous: 11.6% of SD, and line search is inactive\n [stop if: <10% and line search inactive]"
#> [130] "2025-07-28 15:35:29.265912: iinla: Iteration 5 [max:10]"
#> [131] "2025-07-28 15:35:29.642417: iinla: Step rescaling: 162%, Expand (norm0 = 4.305e-07, norm1 = 1.644e-07, norm01 = 2.661e-07)"
#> [132] "2025-07-28 15:35:29.644796: iinla: Step rescaling: 100%, Overstep (norm0 = 2.661e-07, norm1 = 6.59e-13, norm01 = 2.661e-07)"
#> [133] "2025-07-28 15:35:29.647832: iinla: Step rescaling: 100%, Approx Optimisation (norm0 = 2.661e-07, norm1 = 6.985e-13, norm01 = 2.661e-07)"
#> [134] "2025-07-28 15:35:29.64905: iinla: Optimisation did not improve on previous solution."
#> [135] "2025-07-28 15:35:29.650251: iinla: |lin1-lin0| = 2.661e-07\n <eta-lin1,delta>/|delta| = -1.067e-13\n |eta-lin0 - delta <delta,eta-lin0>/<delta,delta>| = 6.503e-13"
#> [136] "2025-07-28 15:35:29.651876: iinla: Evaluate component linearisations"
#> [137] "2025-07-28 15:35:29.653048: Linearise components for each observation model"
#> [138] "2025-07-28 15:35:29.654307: Linearise component 'z'"
#> [139] "2025-07-28 15:35:29.670737: Linearise component 'Intercept'"
#> [140] "2025-07-28 15:35:29.682201: iinla: Evaluate predictor linearisation"
#> [141] "2025-07-28 15:35:29.684524: Linearise with respect to component 'z'"
#> [142] "2025-07-28 15:35:29.687791: Linearise with respect to component 'Intercept'"
#> [143] "2025-07-28 15:35:29.700085: iinla: Max deviation from previous: 0.214% of SD, and line search is inactive\n [stop if: <10% and line search inactive]"
#> [144] "2025-07-28 15:35:29.701287: iinla: Convergence criterion met.\n Running final INLA integration step with known theta mode."
#> [145] "2025-07-28 15:35:29.702958: iinla: Iteration 6 [max:10]"
#> [146] "2025-07-28 15:35:30.966986: bru: Preprocessing"
#> [147] "2025-07-28 15:35:30.972593: Evaluate component inputs for each observation model"
#> [148] "2025-07-28 15:35:30.973847: bru_input(bru_comp_list)"
#> [149] "2025-07-28 15:35:30.975077: bru_input.bru_comp(field)"
#> [150] "2025-07-28 15:35:30.976278: bru_input(bru_input) for (field)"
#> [151] "2025-07-28 15:35:30.982622: bru_input(bru_input) for (field.group)"
#> [152] "2025-07-28 15:35:30.987753: bru_input(bru_input) for (field.repl)"
#> [153] "2025-07-28 15:35:31.017742: iinla: Start"
#> [154] "2025-07-28 15:35:31.018902: iinla: Evaluate component linearisations"
#> [155] "2025-07-28 15:35:31.020073: Linearise components for each observation model"
#> [156] "2025-07-28 15:35:31.021297: Linearise component 'field'"
#> [157] "2025-07-28 15:35:31.035316: iinla: Evaluate component simplifications"
#> [158] "2025-07-28 15:35:31.036508: Simplify component mappers for each observation model"
#> [159] "2025-07-28 15:35:31.037752: Simplify component 'field'"
#> [160] "2025-07-28 15:35:31.051414: iinla: Evaluate predictor linearisation"
#> [161] "2025-07-28 15:35:31.054561: iinla: Construct inla stack"
#> [162] "2025-07-28 15:35:31.065525: iinla: Model initialisation completed"
#> [163] "2025-07-28 15:35:31.066752: iinla: Iteration 1 [max:1]"
#> [164] "2025-07-28 15:35:33.533223: bru_input(bru_comp_list)"
#> [165] "2025-07-28 15:35:37.62637: bru: Preprocessing"
#> [166] "2025-07-28 15:35:37.634308: Evaluate component inputs for each observation model"
#> [167] "2025-07-28 15:35:37.635532: bru_input(bru_comp_list)"
#> [168] "2025-07-28 15:35:37.636726: bru_input.bru_comp(x)"
#> [169] "2025-07-28 15:35:37.637897: bru_input(bru_input) for (x)"
#> [170] "2025-07-28 15:35:37.651243: bru_input(bru_input) for (x.group)"
#> [171] "2025-07-28 15:35:37.656807: bru_input(bru_input) for (x.repl)"
#> [172] "2025-07-28 15:35:37.662096: bru_input(bru_comp_list)"
#> [173] "2025-07-28 15:35:37.6633: bru_input.bru_comp(x)"
#> [174] "2025-07-28 15:35:37.664485: bru_input(bru_input) for (x)"
#> [175] "2025-07-28 15:35:37.669845: bru_input(bru_input) for (x.group)"
#> [176] "2025-07-28 15:35:37.67518: bru_input(bru_input) for (x.repl)"
#> [177] "2025-07-28 15:35:37.705619: iinla: Start"
#> [178] "2025-07-28 15:35:37.706815: iinla: Evaluate component linearisations"
#> [179] "2025-07-28 15:35:37.707972: Linearise components for each observation model"
#> [180] "2025-07-28 15:35:37.7093: Linearise component 'x'"
#> [181] "2025-07-28 15:35:37.723279: Linearise component 'x'"
#> [182] "2025-07-28 15:35:37.735286: iinla: Evaluate component simplifications"
#> [183] "2025-07-28 15:35:37.736478: Simplify component mappers for each observation model"
#> [184] "2025-07-28 15:35:37.737766: Simplify component 'x'"
#> [185] "2025-07-28 15:35:37.75039: Simplify component 'x'"
#> [186] "2025-07-28 15:35:37.762679: iinla: Evaluate predictor linearisation"
#> [187] "2025-07-28 15:35:37.769721: iinla: Construct inla stack"
#> [188] "2025-07-28 15:35:37.78529: iinla: Model initialisation completed"
#> [189] "2025-07-28 15:35:37.786541: iinla: Iteration 1 [max:1]"
#> [190] "2025-07-28 15:35:38.930358: bru_input(bru_input) for (LABEL)"
bru_log(verbosity = 2L)
#> 2025-07-28 15:35:15.362562: inlabru loaded
#> 2025-07-28 15:35:15.36306: Clear override options
#> 2025-07-28 15:35:25.673132: bru: Preprocessing
#> 2025-07-28 15:35:25.943337: iinla: Iteration 1 [max:1]
#> 2025-07-28 15:35:26.483963: bru: Preprocessing
#> 2025-07-28 15:35:26.65635: iinla: Iteration 1 [max:1]
#> 2025-07-28 15:35:27.082932: bru: Preprocessing
#> 2025-07-28 15:35:27.253896: iinla: Iteration 1 [max:10]
#> 2025-07-28 15:35:27.641637: iinla: Step rescaling: 27.6% (norm0 = 298.2, norm1 = 362.7, norm01 = 560)
#> 2025-07-28 15:35:27.688151: iinla: Iteration 2 [max:10]
#> 2025-07-28 15:35:28.33975: iinla: Step rescaling: 99.8% (norm0 = 361.5, norm1 = 16.15, norm01 = 362.6)
#> 2025-07-28 15:35:28.389867: iinla: Max deviation from previous: 74400% of SD, and line search is active
#> [stop if: <10% and line search inactive]
#> 2025-07-28 15:35:28.391649: iinla: Iteration 3 [max:10]
#> 2025-07-28 15:35:28.783796: iinla: Step rescaling: 102% (norm0 = 16.15, norm1 = 0.01358, norm01 = 16.15)
#> 2025-07-28 15:35:28.828521: iinla: Max deviation from previous: 748% of SD, and line search is active
#> [stop if: <10% and line search inactive]
#> 2025-07-28 15:35:28.83024: iinla: Iteration 4 [max:10]
#> 2025-07-28 15:35:29.264219: iinla: Max deviation from previous: 11.6% of SD, and line search is inactive
#> [stop if: <10% and line search inactive]
#> 2025-07-28 15:35:29.265912: iinla: Iteration 5 [max:10]
#> 2025-07-28 15:35:29.700085: iinla: Max deviation from previous: 0.214% of SD, and line search is inactive
#> [stop if: <10% and line search inactive]
#> 2025-07-28 15:35:29.701287: iinla: Convergence criterion met.
#> Running final INLA integration step with known theta mode.
#> 2025-07-28 15:35:29.702958: iinla: Iteration 6 [max:10]
#> 2025-07-28 15:35:30.966986: bru: Preprocessing
#> 2025-07-28 15:35:31.066752: iinla: Iteration 1 [max:1]
#> 2025-07-28 15:35:37.62637: bru: Preprocessing
#> 2025-07-28 15:35:37.786541: iinla: Iteration 1 [max:1]
print(bru_log(), timestamp = TRUE, verbosity = TRUE)
#> 2025-07-28 15:35:15.362562: inlabru loaded (level 1)
#> 2025-07-28 15:35:15.36306: Clear override options (level 1)
#> 2025-07-28 15:35:25.673132: bru: Preprocessing (level 1)
#> 2025-07-28 15:35:25.68189: Evaluate component inputs for each observation model (level 3)
#> 2025-07-28 15:35:25.68328: bru_input(bru_comp_list) (level 4)
#> 2025-07-28 15:35:25.684596: bru_input.bru_comp(x) (level 4)
#> 2025-07-28 15:35:25.686121: bru_input(bru_input) for (x) (level 5)
#> 2025-07-28 15:35:25.693769: bru_input(bru_input) for (x.group) (level 5)
#> 2025-07-28 15:35:25.699594: bru_input(bru_input) for (x.repl) (level 5)
#> 2025-07-28 15:35:25.704962: bru_input.bru_comp(Intercept) (level 4)
#> 2025-07-28 15:35:25.706215: bru_input(bru_input) for (Intercept) (level 5)
#> 2025-07-28 15:35:25.712024: bru_input(bru_input) for (Intercept.group) (level 5)
#> 2025-07-28 15:35:25.717171: bru_input(bru_input) for (Intercept.repl) (level 5)
#> 2025-07-28 15:35:25.839147: iinla: Start (level 3)
#> 2025-07-28 15:35:25.840371: iinla: Evaluate component linearisations (level 3)
#> 2025-07-28 15:35:25.841624: Linearise components for each observation model (level 3)
#> 2025-07-28 15:35:25.843106: Linearise component 'x' (level 4)
#> 2025-07-28 15:35:25.868124: Linearise component 'Intercept' (level 4)
#> 2025-07-28 15:35:25.879887: iinla: Evaluate component simplifications (level 3)
#> 2025-07-28 15:35:25.881216: Simplify component mappers for each observation model (level 3)
#> 2025-07-28 15:35:25.882616: Simplify component 'x' (level 4)
#> 2025-07-28 15:35:25.895107: Simplify component 'Intercept' (level 4)
#> 2025-07-28 15:35:25.907068: iinla: Evaluate predictor linearisation (level 3)
#> 2025-07-28 15:35:25.919362: iinla: Construct inla stack (level 3)
#> 2025-07-28 15:35:25.94206: iinla: Model initialisation completed (level 3)
#> 2025-07-28 15:35:25.943337: iinla: Iteration 1 [max:1] (level 1)
#> 2025-07-28 15:35:26.483963: bru: Preprocessing (level 1)
#> 2025-07-28 15:35:26.487353: Evaluate component inputs for each observation model (level 3)
#> 2025-07-28 15:35:26.48862: bru_input(bru_comp_list) (level 4)
#> 2025-07-28 15:35:26.48984: bru_input.bru_comp(x) (level 4)
#> 2025-07-28 15:35:26.491045: bru_input(bru_input) for (x) (level 5)
#> 2025-07-28 15:35:26.49873: bru_input(bru_input) for (x.group) (level 5)
#> 2025-07-28 15:35:26.504274: bru_input(bru_input) for (x.repl) (level 5)
#> 2025-07-28 15:35:26.509173: bru_input.bru_comp(Intercept) (level 4)
#> 2025-07-28 15:35:26.510439: bru_input(bru_input) for (Intercept) (level 5)
#> 2025-07-28 15:35:26.515327: bru_input(bru_input) for (Intercept.group) (level 5)
#> 2025-07-28 15:35:26.52028: bru_input(bru_input) for (Intercept.repl) (level 5)
#> 2025-07-28 15:35:26.571532: iinla: Start (level 3)
#> 2025-07-28 15:35:26.572703: iinla: Evaluate component linearisations (level 3)
#> 2025-07-28 15:35:26.573858: Linearise components for each observation model (level 3)
#> 2025-07-28 15:35:26.575124: Linearise component 'x' (level 4)
#> 2025-07-28 15:35:26.58794: Linearise component 'Intercept' (level 4)
#> 2025-07-28 15:35:26.608473: iinla: Evaluate component simplifications (level 3)
#> 2025-07-28 15:35:26.609786: Simplify component mappers for each observation model (level 3)
#> 2025-07-28 15:35:26.611097: Simplify component 'x' (level 4)
#> 2025-07-28 15:35:26.623507: Simplify component 'Intercept' (level 4)
#> 2025-07-28 15:35:26.635596: iinla: Evaluate predictor linearisation (level 3)
#> 2025-07-28 15:35:26.641963: iinla: Construct inla stack (level 3)
#> 2025-07-28 15:35:26.655124: iinla: Model initialisation completed (level 3)
#> 2025-07-28 15:35:26.65635: iinla: Iteration 1 [max:1] (level 1)
#> 2025-07-28 15:35:27.082932: bru: Preprocessing (level 1)
#> 2025-07-28 15:35:27.086608: Evaluate component inputs for each observation model (level 3)
#> 2025-07-28 15:35:27.087894: bru_input(bru_comp_list) (level 4)
#> 2025-07-28 15:35:27.089178: bru_input.bru_comp(z) (level 4)
#> 2025-07-28 15:35:27.090437: bru_input(bru_input) for (z) (level 5)
#> 2025-07-28 15:35:27.098096: bru_input(bru_input) for (z.group) (level 5)
#> 2025-07-28 15:35:27.103918: bru_input(bru_input) for (z.repl) (level 5)
#> 2025-07-28 15:35:27.109229: bru_input.bru_comp(Intercept) (level 4)
#> 2025-07-28 15:35:27.110436: bru_input(bru_input) for (Intercept) (level 5)
#> 2025-07-28 15:35:27.115595: bru_input(bru_input) for (Intercept.group) (level 5)
#> 2025-07-28 15:35:27.121289: bru_input(bru_input) for (Intercept.repl) (level 5)
#> 2025-07-28 15:35:27.174938: iinla: Start (level 3)
#> 2025-07-28 15:35:27.176213: iinla: Evaluate component linearisations (level 3)
#> 2025-07-28 15:35:27.177419: Linearise components for each observation model (level 3)
#> 2025-07-28 15:35:27.178721: Linearise component 'z' (level 4)
#> 2025-07-28 15:35:27.190839: Linearise component 'Intercept' (level 4)
#> 2025-07-28 15:35:27.20253: iinla: Evaluate component simplifications (level 3)
#> 2025-07-28 15:35:27.203773: Simplify component mappers for each observation model (level 3)
#> 2025-07-28 15:35:27.205153: Simplify component 'z' (level 4)
#> 2025-07-28 15:35:27.216904: Simplify component 'Intercept' (level 4)
#> 2025-07-28 15:35:27.228817: iinla: Evaluate predictor linearisation (level 3)
#> 2025-07-28 15:35:27.231622: Linearise with respect to component 'z' (level 5)
#> 2025-07-28 15:35:27.236227: Linearise with respect to component 'Intercept' (level 5)
#> 2025-07-28 15:35:27.239469: iinla: Construct inla stack (level 3)
#> 2025-07-28 15:35:27.252674: iinla: Model initialisation completed (level 3)
#> 2025-07-28 15:35:27.253896: iinla: Iteration 1 [max:10] (level 1)
#> 2025-07-28 15:35:27.633373: iinla: Step rescaling: 61.8%, Contract (norm0 = 3092, norm1 = 2833, norm01 = 560) (level 3)
#> 2025-07-28 15:35:27.635854: iinla: Step rescaling: 38.2%, Contract (norm0 = 632.8, norm1 = 468.9, norm01 = 560) (level 3)
#> 2025-07-28 15:35:27.639086: iinla: Step rescaling: 27.61%, Approx Optimisation (norm0 = 298.2, norm1 = 362.7, norm01 = 560) (level 3)
#> 2025-07-28 15:35:27.64039: iinla: |lin1-lin0| = 560
#> <eta-lin1,delta>/|delta| = -318.1
#> |eta-lin0 - delta <delta,eta-lin0>/<delta,delta>| = 174.3 (level 4)
#> 2025-07-28 15:35:27.641637: iinla: Step rescaling: 27.6% (norm0 = 298.2, norm1 = 362.7, norm01 = 560) (level 2)
#> 2025-07-28 15:35:27.643348: iinla: Evaluate component linearisations (level 3)
#> 2025-07-28 15:35:27.644566: Linearise components for each observation model (level 3)
#> 2025-07-28 15:35:27.645867: Linearise component 'z' (level 4)
#> 2025-07-28 15:35:27.657544: Linearise component 'Intercept' (level 4)
#> 2025-07-28 15:35:27.669246: iinla: Evaluate predictor linearisation (level 3)
#> 2025-07-28 15:35:27.671552: Linearise with respect to component 'z' (level 5)
#> 2025-07-28 15:35:27.674982: Linearise with respect to component 'Intercept' (level 5)
#> 2025-07-28 15:35:27.688151: iinla: Iteration 2 [max:10] (level 1)
#> 2025-07-28 15:35:28.331987: iinla: Step rescaling: 162%, Expand (norm0 = 586.7, norm1 = 226.9, norm01 = 362.6) (level 3)
#> 2025-07-28 15:35:28.334402: iinla: Step rescaling: 100%, Overstep (norm0 = 362.3, norm1 = 16.18, norm01 = 362.6) (level 3)
#> 2025-07-28 15:35:28.337383: iinla: Step rescaling: 99.77%, Approx Optimisation (norm0 = 361.5, norm1 = 16.15, norm01 = 362.6) (level 3)
#> 2025-07-28 15:35:28.338598: iinla: |lin1-lin0| = 362.6
#> <eta-lin1,delta>/|delta| = -1.44
#> |eta-lin0 - delta <delta,eta-lin0>/<delta,delta>| = 16.09 (level 4)
#> 2025-07-28 15:35:28.33975: iinla: Step rescaling: 99.8% (norm0 = 361.5, norm1 = 16.15, norm01 = 362.6) (level 2)
#> 2025-07-28 15:35:28.341411: iinla: Evaluate component linearisations (level 3)
#> 2025-07-28 15:35:28.342519: Linearise components for each observation model (level 3)
#> 2025-07-28 15:35:28.343731: Linearise component 'z' (level 4)
#> 2025-07-28 15:35:28.35982: Linearise component 'Intercept' (level 4)
#> 2025-07-28 15:35:28.37149: iinla: Evaluate predictor linearisation (level 3)
#> 2025-07-28 15:35:28.373933: Linearise with respect to component 'z' (level 5)
#> 2025-07-28 15:35:28.377368: Linearise with respect to component 'Intercept' (level 5)
#> 2025-07-28 15:35:28.389867: iinla: Max deviation from previous: 74400% of SD, and line search is active
#> [stop if: <10% and line search inactive] (level 1)
#> 2025-07-28 15:35:28.391649: iinla: Iteration 3 [max:10] (level 1)
#> 2025-07-28 15:35:28.770406: iinla: Step rescaling: 162%, Expand (norm0 = 25.48, norm1 = 9.329, norm01 = 16.15) (level 3)
#> 2025-07-28 15:35:28.772956: iinla: Step rescaling: 100%, Overstep (norm0 = 15.9, norm1 = 0.2508, norm01 = 16.15) (level 3)
#> 2025-07-28 15:35:28.781327: iinla: Step rescaling: 101.6%, Approx Optimisation (norm0 = 16.15, norm1 = 0.01358, norm01 = 16.15) (level 3)
#> 2025-07-28 15:35:28.782639: iinla: |lin1-lin0| = 16.15
#> <eta-lin1,delta>/|delta| = -5.412e-06
#> |eta-lin0 - delta <delta,eta-lin0>/<delta,delta>| = 0.01358 (level 4)
#> 2025-07-28 15:35:28.783796: iinla: Step rescaling: 102% (norm0 = 16.15, norm1 = 0.01358, norm01 = 16.15) (level 2)
#> 2025-07-28 15:35:28.785444: iinla: Evaluate component linearisations (level 3)
#> 2025-07-28 15:35:28.786565: Linearise components for each observation model (level 3)
#> 2025-07-28 15:35:28.78785: Linearise component 'z' (level 4)
#> 2025-07-28 15:35:28.799338: Linearise component 'Intercept' (level 4)
#> 2025-07-28 15:35:28.810666: iinla: Evaluate predictor linearisation (level 3)
#> 2025-07-28 15:35:28.812952: Linearise with respect to component 'z' (level 5)
#> 2025-07-28 15:35:28.816289: Linearise with respect to component 'Intercept' (level 5)
#> 2025-07-28 15:35:28.828521: iinla: Max deviation from previous: 748% of SD, and line search is active
#> [stop if: <10% and line search inactive] (level 1)
#> 2025-07-28 15:35:28.83024: iinla: Iteration 4 [max:10] (level 1)
#> 2025-07-28 15:35:29.20788: iinla: Step rescaling: 162%, Expand (norm0 = 0.02197, norm1 = 0.008393, norm01 = 0.01358) (level 3)
#> 2025-07-28 15:35:29.210352: iinla: Step rescaling: 100%, Overstep (norm0 = 0.01358, norm1 = 5.334e-08, norm01 = 0.01358) (level 3)
#> 2025-07-28 15:35:29.213313: iinla: Step rescaling: 100%, Approx Optimisation (norm0 = 0.01358, norm1 = 5.327e-08, norm01 = 0.01358) (level 3)
#> 2025-07-28 15:35:29.214545: iinla: |lin1-lin0| = 0.01358
#> <eta-lin1,delta>/|delta| = 5.962e-11
#> |eta-lin0 - delta <delta,eta-lin0>/<delta,delta>| = 5.327e-08 (level 4)
#> 2025-07-28 15:35:29.220927: iinla: Evaluate component linearisations (level 3)
#> 2025-07-28 15:35:29.222116: Linearise components for each observation model (level 3)
#> 2025-07-28 15:35:29.223493: Linearise component 'z' (level 4)
#> 2025-07-28 15:35:29.234993: Linearise component 'Intercept' (level 4)
#> 2025-07-28 15:35:29.246295: iinla: Evaluate predictor linearisation (level 3)
#> 2025-07-28 15:35:29.248717: Linearise with respect to component 'z' (level 5)
#> 2025-07-28 15:35:29.25204: Linearise with respect to component 'Intercept' (level 5)
#> 2025-07-28 15:35:29.264219: iinla: Max deviation from previous: 11.6% of SD, and line search is inactive
#> [stop if: <10% and line search inactive] (level 1)
#> 2025-07-28 15:35:29.265912: iinla: Iteration 5 [max:10] (level 1)
#> 2025-07-28 15:35:29.642417: iinla: Step rescaling: 162%, Expand (norm0 = 4.305e-07, norm1 = 1.644e-07, norm01 = 2.661e-07) (level 3)
#> 2025-07-28 15:35:29.644796: iinla: Step rescaling: 100%, Overstep (norm0 = 2.661e-07, norm1 = 6.59e-13, norm01 = 2.661e-07) (level 3)
#> 2025-07-28 15:35:29.647832: iinla: Step rescaling: 100%, Approx Optimisation (norm0 = 2.661e-07, norm1 = 6.985e-13, norm01 = 2.661e-07) (level 3)
#> 2025-07-28 15:35:29.64905: iinla: Optimisation did not improve on previous solution. (level 3)
#> 2025-07-28 15:35:29.650251: iinla: |lin1-lin0| = 2.661e-07
#> <eta-lin1,delta>/|delta| = -1.067e-13
#> |eta-lin0 - delta <delta,eta-lin0>/<delta,delta>| = 6.503e-13 (level 4)
#> 2025-07-28 15:35:29.651876: iinla: Evaluate component linearisations (level 3)
#> 2025-07-28 15:35:29.653048: Linearise components for each observation model (level 3)
#> 2025-07-28 15:35:29.654307: Linearise component 'z' (level 4)
#> 2025-07-28 15:35:29.670737: Linearise component 'Intercept' (level 4)
#> 2025-07-28 15:35:29.682201: iinla: Evaluate predictor linearisation (level 3)
#> 2025-07-28 15:35:29.684524: Linearise with respect to component 'z' (level 5)
#> 2025-07-28 15:35:29.687791: Linearise with respect to component 'Intercept' (level 5)
#> 2025-07-28 15:35:29.700085: iinla: Max deviation from previous: 0.214% of SD, and line search is inactive
#> [stop if: <10% and line search inactive] (level 1)
#> 2025-07-28 15:35:29.701287: iinla: Convergence criterion met.
#> Running final INLA integration step with known theta mode. (level 1)
#> 2025-07-28 15:35:29.702958: iinla: Iteration 6 [max:10] (level 1)
#> 2025-07-28 15:35:30.966986: bru: Preprocessing (level 1)
#> 2025-07-28 15:35:30.972593: Evaluate component inputs for each observation model (level 3)
#> 2025-07-28 15:35:30.973847: bru_input(bru_comp_list) (level 4)
#> 2025-07-28 15:35:30.975077: bru_input.bru_comp(field) (level 4)
#> 2025-07-28 15:35:30.976278: bru_input(bru_input) for (field) (level 5)
#> 2025-07-28 15:35:30.982622: bru_input(bru_input) for (field.group) (level 5)
#> 2025-07-28 15:35:30.987753: bru_input(bru_input) for (field.repl) (level 5)
#> 2025-07-28 15:35:31.017742: iinla: Start (level 3)
#> 2025-07-28 15:35:31.018902: iinla: Evaluate component linearisations (level 3)
#> 2025-07-28 15:35:31.020073: Linearise components for each observation model (level 3)
#> 2025-07-28 15:35:31.021297: Linearise component 'field' (level 4)
#> 2025-07-28 15:35:31.035316: iinla: Evaluate component simplifications (level 3)
#> 2025-07-28 15:35:31.036508: Simplify component mappers for each observation model (level 3)
#> 2025-07-28 15:35:31.037752: Simplify component 'field' (level 4)
#> 2025-07-28 15:35:31.051414: iinla: Evaluate predictor linearisation (level 3)
#> 2025-07-28 15:35:31.054561: iinla: Construct inla stack (level 3)
#> 2025-07-28 15:35:31.065525: iinla: Model initialisation completed (level 3)
#> 2025-07-28 15:35:31.066752: iinla: Iteration 1 [max:1] (level 1)
#> 2025-07-28 15:35:33.533223: bru_input(bru_comp_list) (level 4)
#> 2025-07-28 15:35:37.62637: bru: Preprocessing (level 1)
#> 2025-07-28 15:35:37.634308: Evaluate component inputs for each observation model (level 3)
#> 2025-07-28 15:35:37.635532: bru_input(bru_comp_list) (level 4)
#> 2025-07-28 15:35:37.636726: bru_input.bru_comp(x) (level 4)
#> 2025-07-28 15:35:37.637897: bru_input(bru_input) for (x) (level 5)
#> 2025-07-28 15:35:37.651243: bru_input(bru_input) for (x.group) (level 5)
#> 2025-07-28 15:35:37.656807: bru_input(bru_input) for (x.repl) (level 5)
#> 2025-07-28 15:35:37.662096: bru_input(bru_comp_list) (level 4)
#> 2025-07-28 15:35:37.6633: bru_input.bru_comp(x) (level 4)
#> 2025-07-28 15:35:37.664485: bru_input(bru_input) for (x) (level 5)
#> 2025-07-28 15:35:37.669845: bru_input(bru_input) for (x.group) (level 5)
#> 2025-07-28 15:35:37.67518: bru_input(bru_input) for (x.repl) (level 5)
#> 2025-07-28 15:35:37.705619: iinla: Start (level 3)
#> 2025-07-28 15:35:37.706815: iinla: Evaluate component linearisations (level 3)
#> 2025-07-28 15:35:37.707972: Linearise components for each observation model (level 3)
#> 2025-07-28 15:35:37.7093: Linearise component 'x' (level 4)
#> 2025-07-28 15:35:37.723279: Linearise component 'x' (level 4)
#> 2025-07-28 15:35:37.735286: iinla: Evaluate component simplifications (level 3)
#> 2025-07-28 15:35:37.736478: Simplify component mappers for each observation model (level 3)
#> 2025-07-28 15:35:37.737766: Simplify component 'x' (level 4)
#> 2025-07-28 15:35:37.75039: Simplify component 'x' (level 4)
#> 2025-07-28 15:35:37.762679: iinla: Evaluate predictor linearisation (level 3)
#> 2025-07-28 15:35:37.769721: iinla: Construct inla stack (level 3)
#> 2025-07-28 15:35:37.78529: iinla: Model initialisation completed (level 3)
#> 2025-07-28 15:35:37.786541: iinla: Iteration 1 [max:1] (level 1)
#> 2025-07-28 15:35:38.930358: bru_input(bru_input) for (LABEL) (level 5)