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-06-11 23:21:02.967808: inlabru loaded
#> 2025-06-11 23:21:02.968287: Clear override options
#> 2025-06-11 23:21:08.033844: bru: Preprocessing
#> 2025-06-11 23:21:08.290365: iinla: Iteration 1 [max:1]
#> 2025-06-11 23:21:08.987052: bru: Preprocessing
#> 2025-06-11 23:21:09.1368: iinla: Iteration 1 [max:1]
#> 2025-06-11 23:21:09.720218: bru: Preprocessing
#> 2025-06-11 23:21:09.873158: iinla: Iteration 1 [max:10]
#> 2025-06-11 23:21:10.414595: iinla: Step rescaling: 27.1% (norm0 = 184.8, norm1 = 228.4, norm01 = 351.8)
#> 2025-06-11 23:21:10.455958: iinla: Iteration 2 [max:10]
#> 2025-06-11 23:21:11.251657: iinla: Step rescaling: 99.5% (norm0 = 227.7, norm1 = 11.96, norm01 = 228.6)
#> 2025-06-11 23:21:11.291605: iinla: Max deviation from previous: 47200% of SD, and line search is active
#> [stop if: <10% and line search inactive]
#> 2025-06-11 23:21:11.293296: iinla: Iteration 3 [max:10]
#> 2025-06-11 23:21:11.840406: iinla: Step rescaling: 102% (norm0 = 11.95, norm1 = 0.01917, norm01 = 11.95)
#> 2025-06-11 23:21:11.886063: iinla: Max deviation from previous: 555% of SD, and line search is active
#> [stop if: <10% and line search inactive]
#> 2025-06-11 23:21:11.887785: iinla: Iteration 4 [max:10]
#> 2025-06-11 23:21:12.468677: iinla: Max deviation from previous: 9.69% of SD, and line search is inactive
#> [stop if: <10% and line search inactive]
#> 2025-06-11 23:21:12.469855: iinla: Convergence criterion met.
#> Running final INLA integration step with known theta mode.
#> 2025-06-11 23:21:12.471551: iinla: Iteration 5 [max:10]
#> 2025-06-11 23:21:13.937412: bru: Preprocessing
#> 2025-06-11 23:21:14.033329: iinla: Iteration 1 [max:1]
#> 2025-06-11 23:21:21.056999: bru: Preprocessing
#> 2025-06-11 23:21:21.204722: iinla: Iteration 1 [max:1]
format(bru_log())
#> [1] "2025-06-11 23:21:02.967808: inlabru loaded"
#> [2] "2025-06-11 23:21:02.968287: Clear override options"
#> [3] "2025-06-11 23:21:08.033844: bru: Preprocessing"
#> [4] "2025-06-11 23:21:08.042577: Evaluate component inputs for each observation model"
#> [5] "2025-06-11 23:21:08.043889: input_eval.bru_comp_list"
#> [6] "2025-06-11 23:21:08.045169: input_eval.bru_comp(x)"
#> [7] "2025-06-11 23:21:08.046654: input_eval.bru_input(x)"
#> [8] "2025-06-11 23:21:08.05406: input_eval.bru_input(x.group)"
#> [9] "2025-06-11 23:21:08.059288: input_eval.bru_input(x.repl)"
#> [10] "2025-06-11 23:21:08.064341: input_eval.bru_comp(Intercept)"
#> [11] "2025-06-11 23:21:08.065585: input_eval.bru_input(Intercept)"
#> [12] "2025-06-11 23:21:08.070736: input_eval.bru_input(Intercept.group)"
#> [13] "2025-06-11 23:21:08.07579: input_eval.bru_input(Intercept.repl)"
#> [14] "2025-06-11 23:21:08.189776: iinla: Start"
#> [15] "2025-06-11 23:21:08.191: iinla: Evaluate component linearisations"
#> [16] "2025-06-11 23:21:08.192281: Linearise components for each observation model"
#> [17] "2025-06-11 23:21:08.19363: Linearise components"
#> [18] "2025-06-11 23:21:08.194855: Linearise component 'x'"
#> [19] "2025-06-11 23:21:08.215224: Linearise component 'Intercept'"
#> [20] "2025-06-11 23:21:08.22406: iinla: Evaluate component simplifications"
#> [21] "2025-06-11 23:21:08.225326: Simplify model components"
#> [22] "2025-06-11 23:21:08.226671: Simplify component 'x'"
#> [23] "2025-06-11 23:21:08.236132: Simplify component 'Intercept'"
#> [24] "2025-06-11 23:21:08.244958: iinla: Evaluate predictor linearisation"
#> [25] "2025-06-11 23:21:08.257838: iinla: Construct inla stack"
#> [26] "2025-06-11 23:21:08.289075: iinla: Model initialisation completed"
#> [27] "2025-06-11 23:21:08.290365: iinla: Iteration 1 [max:1]"
#> [28] "2025-06-11 23:21:08.987052: bru: Preprocessing"
#> [29] "2025-06-11 23:21:08.990291: Evaluate component inputs for each observation model"
#> [30] "2025-06-11 23:21:08.991544: input_eval.bru_comp_list"
#> [31] "2025-06-11 23:21:08.992741: input_eval.bru_comp(x)"
#> [32] "2025-06-11 23:21:08.993949: input_eval.bru_input(x)"
#> [33] "2025-06-11 23:21:09.000378: input_eval.bru_input(x.group)"
#> [34] "2025-06-11 23:21:09.005376: input_eval.bru_input(x.repl)"
#> [35] "2025-06-11 23:21:09.010389: input_eval.bru_comp(Intercept)"
#> [36] "2025-06-11 23:21:09.011616: input_eval.bru_input(Intercept)"
#> [37] "2025-06-11 23:21:09.016792: input_eval.bru_input(Intercept.group)"
#> [38] "2025-06-11 23:21:09.02183: input_eval.bru_input(Intercept.repl)"
#> [39] "2025-06-11 23:21:09.067246: iinla: Start"
#> [40] "2025-06-11 23:21:09.068426: iinla: Evaluate component linearisations"
#> [41] "2025-06-11 23:21:09.069657: Linearise components for each observation model"
#> [42] "2025-06-11 23:21:09.070887: Linearise components"
#> [43] "2025-06-11 23:21:09.072053: Linearise component 'x'"
#> [44] "2025-06-11 23:21:09.082435: Linearise component 'Intercept'"
#> [45] "2025-06-11 23:21:09.091175: iinla: Evaluate component simplifications"
#> [46] "2025-06-11 23:21:09.09237: Simplify model components"
#> [47] "2025-06-11 23:21:09.093608: Simplify component 'x'"
#> [48] "2025-06-11 23:21:09.102729: Simplify component 'Intercept'"
#> [49] "2025-06-11 23:21:09.117474: iinla: Evaluate predictor linearisation"
#> [50] "2025-06-11 23:21:09.123232: iinla: Construct inla stack"
#> [51] "2025-06-11 23:21:09.135587: iinla: Model initialisation completed"
#> [52] "2025-06-11 23:21:09.1368: iinla: Iteration 1 [max:1]"
#> [53] "2025-06-11 23:21:09.720218: bru: Preprocessing"
#> [54] "2025-06-11 23:21:09.72897: Evaluate component inputs for each observation model"
#> [55] "2025-06-11 23:21:09.730219: input_eval.bru_comp_list"
#> [56] "2025-06-11 23:21:09.731411: input_eval.bru_comp(z)"
#> [57] "2025-06-11 23:21:09.732615: input_eval.bru_input(z)"
#> [58] "2025-06-11 23:21:09.73901: input_eval.bru_input(z.group)"
#> [59] "2025-06-11 23:21:09.744259: input_eval.bru_input(z.repl)"
#> [60] "2025-06-11 23:21:09.749412: input_eval.bru_comp(Intercept)"
#> [61] "2025-06-11 23:21:09.750652: input_eval.bru_input(Intercept)"
#> [62] "2025-06-11 23:21:09.755907: input_eval.bru_input(Intercept.group)"
#> [63] "2025-06-11 23:21:09.76111: input_eval.bru_input(Intercept.repl)"
#> [64] "2025-06-11 23:21:09.806519: iinla: Start"
#> [65] "2025-06-11 23:21:09.807739: iinla: Evaluate component linearisations"
#> [66] "2025-06-11 23:21:09.808917: Linearise components for each observation model"
#> [67] "2025-06-11 23:21:09.810183: Linearise components"
#> [68] "2025-06-11 23:21:09.8114: Linearise component 'z'"
#> [69] "2025-06-11 23:21:09.820506: Linearise component 'Intercept'"
#> [70] "2025-06-11 23:21:09.829098: iinla: Evaluate component simplifications"
#> [71] "2025-06-11 23:21:09.830281: Simplify model components"
#> [72] "2025-06-11 23:21:09.831538: Simplify component 'z'"
#> [73] "2025-06-11 23:21:09.840343: Simplify component 'Intercept'"
#> [74] "2025-06-11 23:21:09.849081: iinla: Evaluate predictor linearisation"
#> [75] "2025-06-11 23:21:09.851544: Linearise with respect to component 'z'"
#> [76] "2025-06-11 23:21:09.856059: Linearise with respect to component 'Intercept'"
#> [77] "2025-06-11 23:21:09.859113: iinla: Construct inla stack"
#> [78] "2025-06-11 23:21:09.871914: iinla: Model initialisation completed"
#> [79] "2025-06-11 23:21:09.873158: iinla: Iteration 1 [max:10]"
#> [80] "2025-06-11 23:21:10.407219: iinla: Step rescaling: 61.8%, Contract (norm0 = 2076, norm1 = 1910, norm01 = 351.8)"
#> [81] "2025-06-11 23:21:10.409289: iinla: Step rescaling: 38.2%, Contract (norm0 = 413.9, norm1 = 304.9, norm01 = 351.8)"
#> [82] "2025-06-11 23:21:10.412046: iinla: Step rescaling: 27.06%, Approx Optimisation (norm0 = 184.8, norm1 = 228.4, norm01 = 351.8)"
#> [83] "2025-06-11 23:21:10.413383: iinla: |lin1-lin0| = 351.8\n <eta-lin1,delta>/|delta| = -201.5\n |eta-lin0 - delta <delta,eta-lin0>/<delta,delta>| = 107.4"
#> [84] "2025-06-11 23:21:10.414595: iinla: Step rescaling: 27.1% (norm0 = 184.8, norm1 = 228.4, norm01 = 351.8)"
#> [85] "2025-06-11 23:21:10.416282: iinla: Evaluate component linearisations"
#> [86] "2025-06-11 23:21:10.417438: Linearise components for each observation model"
#> [87] "2025-06-11 23:21:10.418677: Linearise components"
#> [88] "2025-06-11 23:21:10.419839: Linearise component 'z'"
#> [89] "2025-06-11 23:21:10.428874: Linearise component 'Intercept'"
#> [90] "2025-06-11 23:21:10.437677: iinla: Evaluate predictor linearisation"
#> [91] "2025-06-11 23:21:10.439721: Linearise with respect to component 'z'"
#> [92] "2025-06-11 23:21:10.443092: Linearise with respect to component 'Intercept'"
#> [93] "2025-06-11 23:21:10.455958: iinla: Iteration 2 [max:10]"
#> [94] "2025-06-11 23:21:11.249066: iinla: Step rescaling: 99.54%, Approx Optimisation (norm0 = 227.7, norm1 = 11.96, norm01 = 228.6)"
#> [95] "2025-06-11 23:21:11.250415: iinla: |lin1-lin0| = 228.6\n <eta-lin1,delta>/|delta| = -1.246\n |eta-lin0 - delta <delta,eta-lin0>/<delta,delta>| = 11.89"
#> [96] "2025-06-11 23:21:11.251657: iinla: Step rescaling: 99.5% (norm0 = 227.7, norm1 = 11.96, norm01 = 228.6)"
#> [97] "2025-06-11 23:21:11.253338: iinla: Evaluate component linearisations"
#> [98] "2025-06-11 23:21:11.254474: Linearise components for each observation model"
#> [99] "2025-06-11 23:21:11.255661: Linearise components"
#> [100] "2025-06-11 23:21:11.256794: Linearise component 'z'"
#> [101] "2025-06-11 23:21:11.265695: Linearise component 'Intercept'"
#> [102] "2025-06-11 23:21:11.274321: iinla: Evaluate predictor linearisation"
#> [103] "2025-06-11 23:21:11.276294: Linearise with respect to component 'z'"
#> [104] "2025-06-11 23:21:11.279556: Linearise with respect to component 'Intercept'"
#> [105] "2025-06-11 23:21:11.291605: iinla: Max deviation from previous: 47200% of SD, and line search is active\n [stop if: <10% and line search inactive]"
#> [106] "2025-06-11 23:21:11.293296: iinla: Iteration 3 [max:10]"
#> [107] "2025-06-11 23:21:11.833011: iinla: Step rescaling: 162%, Expand (norm0 = 18.8, norm1 = 6.846, norm01 = 11.95)"
#> [108] "2025-06-11 23:21:11.835113: iinla: Step rescaling: 100%, Overstep (norm0 = 11.74, norm1 = 0.2094, norm01 = 11.95)"
#> [109] "2025-06-11 23:21:11.83789: iinla: Step rescaling: 101.8%, Approx Optimisation (norm0 = 11.95, norm1 = 0.01917, norm01 = 11.95)"
#> [110] "2025-06-11 23:21:11.839194: iinla: |lin1-lin0| = 11.95\n <eta-lin1,delta>/|delta| = -4e-05\n |eta-lin0 - delta <delta,eta-lin0>/<delta,delta>| = 0.01917"
#> [111] "2025-06-11 23:21:11.840406: iinla: Step rescaling: 102% (norm0 = 11.95, norm1 = 0.01917, norm01 = 11.95)"
#> [112] "2025-06-11 23:21:11.846963: iinla: Evaluate component linearisations"
#> [113] "2025-06-11 23:21:11.84814: Linearise components for each observation model"
#> [114] "2025-06-11 23:21:11.849384: Linearise components"
#> [115] "2025-06-11 23:21:11.850531: Linearise component 'z'"
#> [116] "2025-06-11 23:21:11.859567: Linearise component 'Intercept'"
#> [117] "2025-06-11 23:21:11.868146: iinla: Evaluate predictor linearisation"
#> [118] "2025-06-11 23:21:11.870184: Linearise with respect to component 'z'"
#> [119] "2025-06-11 23:21:11.873595: Linearise with respect to component 'Intercept'"
#> [120] "2025-06-11 23:21:11.886063: iinla: Max deviation from previous: 555% of SD, and line search is active\n [stop if: <10% and line search inactive]"
#> [121] "2025-06-11 23:21:11.887785: iinla: Iteration 4 [max:10]"
#> [122] "2025-06-11 23:21:12.417326: iinla: Step rescaling: 162%, Expand (norm0 = 0.03103, norm1 = 0.01185, norm01 = 0.01917)"
#> [123] "2025-06-11 23:21:12.419331: iinla: Step rescaling: 100%, Overstep (norm0 = 0.01917, norm1 = 1.444e-07, norm01 = 0.01917)"
#> [124] "2025-06-11 23:21:12.422094: iinla: Step rescaling: 100%, Approx Optimisation (norm0 = 0.01917, norm1 = 1.438e-07, norm01 = 0.01917)"
#> [125] "2025-06-11 23:21:12.423314: iinla: |lin1-lin0| = 0.01917\n <eta-lin1,delta>/|delta| = 2.759e-10\n |eta-lin0 - delta <delta,eta-lin0>/<delta,delta>| = 1.438e-07"
#> [126] "2025-06-11 23:21:12.425031: iinla: Evaluate component linearisations"
#> [127] "2025-06-11 23:21:12.426169: Linearise components for each observation model"
#> [128] "2025-06-11 23:21:12.427369: Linearise components"
#> [129] "2025-06-11 23:21:12.428589: Linearise component 'z'"
#> [130] "2025-06-11 23:21:12.44234: Linearise component 'Intercept'"
#> [131] "2025-06-11 23:21:12.451114: iinla: Evaluate predictor linearisation"
#> [132] "2025-06-11 23:21:12.453093: Linearise with respect to component 'z'"
#> [133] "2025-06-11 23:21:12.456367: Linearise with respect to component 'Intercept'"
#> [134] "2025-06-11 23:21:12.468677: iinla: Max deviation from previous: 9.69% of SD, and line search is inactive\n [stop if: <10% and line search inactive]"
#> [135] "2025-06-11 23:21:12.469855: iinla: Convergence criterion met.\n Running final INLA integration step with known theta mode."
#> [136] "2025-06-11 23:21:12.471551: iinla: Iteration 5 [max:10]"
#> [137] "2025-06-11 23:21:13.937412: bru: Preprocessing"
#> [138] "2025-06-11 23:21:13.942928: Evaluate component inputs for each observation model"
#> [139] "2025-06-11 23:21:13.944163: input_eval.bru_comp_list"
#> [140] "2025-06-11 23:21:13.945359: input_eval.bru_comp(field)"
#> [141] "2025-06-11 23:21:13.946599: input_eval.bru_input(field)"
#> [142] "2025-06-11 23:21:13.953321: input_eval.bru_input(field.group)"
#> [143] "2025-06-11 23:21:13.95876: input_eval.bru_input(field.repl)"
#> [144] "2025-06-11 23:21:13.986246: iinla: Start"
#> [145] "2025-06-11 23:21:13.98744: iinla: Evaluate component linearisations"
#> [146] "2025-06-11 23:21:13.988663: Linearise components for each observation model"
#> [147] "2025-06-11 23:21:13.989889: Linearise components"
#> [148] "2025-06-11 23:21:13.99107: Linearise component 'field'"
#> [149] "2025-06-11 23:21:14.004848: iinla: Evaluate component simplifications"
#> [150] "2025-06-11 23:21:14.006081: Simplify model components"
#> [151] "2025-06-11 23:21:14.007351: Simplify component 'field'"
#> [152] "2025-06-11 23:21:14.018338: iinla: Evaluate predictor linearisation"
#> [153] "2025-06-11 23:21:14.021438: iinla: Construct inla stack"
#> [154] "2025-06-11 23:21:14.032059: iinla: Model initialisation completed"
#> [155] "2025-06-11 23:21:14.033329: iinla: Iteration 1 [max:1]"
#> [156] "2025-06-11 23:21:16.679668: input_eval.bru_comp_list"
#> [157] "2025-06-11 23:21:21.056999: bru: Preprocessing"
#> [158] "2025-06-11 23:21:21.064682: Evaluate component inputs for each observation model"
#> [159] "2025-06-11 23:21:21.065915: input_eval.bru_comp_list"
#> [160] "2025-06-11 23:21:21.067115: input_eval.bru_comp(x)"
#> [161] "2025-06-11 23:21:21.068329: input_eval.bru_input(x)"
#> [162] "2025-06-11 23:21:21.075416: input_eval.bru_input(x.group)"
#> [163] "2025-06-11 23:21:21.081041: input_eval.bru_input(x.repl)"
#> [164] "2025-06-11 23:21:21.086567: input_eval.bru_comp_list"
#> [165] "2025-06-11 23:21:21.087809: input_eval.bru_comp(x)"
#> [166] "2025-06-11 23:21:21.089: input_eval.bru_input(x)"
#> [167] "2025-06-11 23:21:21.094581: input_eval.bru_input(x.group)"
#> [168] "2025-06-11 23:21:21.100257: input_eval.bru_input(x.repl)"
#> [169] "2025-06-11 23:21:21.127928: iinla: Start"
#> [170] "2025-06-11 23:21:21.129154: iinla: Evaluate component linearisations"
#> [171] "2025-06-11 23:21:21.13034: Linearise components for each observation model"
#> [172] "2025-06-11 23:21:21.131654: Linearise components"
#> [173] "2025-06-11 23:21:21.132904: Linearise component 'x'"
#> [174] "2025-06-11 23:21:21.144243: Linearise components"
#> [175] "2025-06-11 23:21:21.145493: Linearise component 'x'"
#> [176] "2025-06-11 23:21:21.161486: iinla: Evaluate component simplifications"
#> [177] "2025-06-11 23:21:21.16275: Simplify model components"
#> [178] "2025-06-11 23:21:21.164012: Simplify component 'x'"
#> [179] "2025-06-11 23:21:21.173259: Simplify component 'x'"
#> [180] "2025-06-11 23:21:21.182339: iinla: Evaluate predictor linearisation"
#> [181] "2025-06-11 23:21:21.188683: iinla: Construct inla stack"
#> [182] "2025-06-11 23:21:21.203519: iinla: Model initialisation completed"
#> [183] "2025-06-11 23:21:21.204722: iinla: Iteration 1 [max:1]"
bru_log(verbosity = 2L)
#> 2025-06-11 23:21:02.967808: inlabru loaded
#> 2025-06-11 23:21:02.968287: Clear override options
#> 2025-06-11 23:21:08.033844: bru: Preprocessing
#> 2025-06-11 23:21:08.290365: iinla: Iteration 1 [max:1]
#> 2025-06-11 23:21:08.987052: bru: Preprocessing
#> 2025-06-11 23:21:09.1368: iinla: Iteration 1 [max:1]
#> 2025-06-11 23:21:09.720218: bru: Preprocessing
#> 2025-06-11 23:21:09.873158: iinla: Iteration 1 [max:10]
#> 2025-06-11 23:21:10.414595: iinla: Step rescaling: 27.1% (norm0 = 184.8, norm1 = 228.4, norm01 = 351.8)
#> 2025-06-11 23:21:10.455958: iinla: Iteration 2 [max:10]
#> 2025-06-11 23:21:11.251657: iinla: Step rescaling: 99.5% (norm0 = 227.7, norm1 = 11.96, norm01 = 228.6)
#> 2025-06-11 23:21:11.291605: iinla: Max deviation from previous: 47200% of SD, and line search is active
#> [stop if: <10% and line search inactive]
#> 2025-06-11 23:21:11.293296: iinla: Iteration 3 [max:10]
#> 2025-06-11 23:21:11.840406: iinla: Step rescaling: 102% (norm0 = 11.95, norm1 = 0.01917, norm01 = 11.95)
#> 2025-06-11 23:21:11.886063: iinla: Max deviation from previous: 555% of SD, and line search is active
#> [stop if: <10% and line search inactive]
#> 2025-06-11 23:21:11.887785: iinla: Iteration 4 [max:10]
#> 2025-06-11 23:21:12.468677: iinla: Max deviation from previous: 9.69% of SD, and line search is inactive
#> [stop if: <10% and line search inactive]
#> 2025-06-11 23:21:12.469855: iinla: Convergence criterion met.
#> Running final INLA integration step with known theta mode.
#> 2025-06-11 23:21:12.471551: iinla: Iteration 5 [max:10]
#> 2025-06-11 23:21:13.937412: bru: Preprocessing
#> 2025-06-11 23:21:14.033329: iinla: Iteration 1 [max:1]
#> 2025-06-11 23:21:21.056999: bru: Preprocessing
#> 2025-06-11 23:21:21.204722: iinla: Iteration 1 [max:1]
print(bru_log(), timestamp = TRUE, verbosity = TRUE)
#> 2025-06-11 23:21:02.967808: inlabru loaded (level 1)
#> 2025-06-11 23:21:02.968287: Clear override options (level 1)
#> 2025-06-11 23:21:08.033844: bru: Preprocessing (level 1)
#> 2025-06-11 23:21:08.042577: Evaluate component inputs for each observation model (level 3)
#> 2025-06-11 23:21:08.043889: input_eval.bru_comp_list (level 4)
#> 2025-06-11 23:21:08.045169: input_eval.bru_comp(x) (level 4)
#> 2025-06-11 23:21:08.046654: input_eval.bru_input(x) (level 5)
#> 2025-06-11 23:21:08.05406: input_eval.bru_input(x.group) (level 5)
#> 2025-06-11 23:21:08.059288: input_eval.bru_input(x.repl) (level 5)
#> 2025-06-11 23:21:08.064341: input_eval.bru_comp(Intercept) (level 4)
#> 2025-06-11 23:21:08.065585: input_eval.bru_input(Intercept) (level 5)
#> 2025-06-11 23:21:08.070736: input_eval.bru_input(Intercept.group) (level 5)
#> 2025-06-11 23:21:08.07579: input_eval.bru_input(Intercept.repl) (level 5)
#> 2025-06-11 23:21:08.189776: iinla: Start (level 3)
#> 2025-06-11 23:21:08.191: iinla: Evaluate component linearisations (level 3)
#> 2025-06-11 23:21:08.192281: Linearise components for each observation model (level 3)
#> 2025-06-11 23:21:08.19363: Linearise components (level 5)
#> 2025-06-11 23:21:08.194855: Linearise component 'x' (level 5)
#> 2025-06-11 23:21:08.215224: Linearise component 'Intercept' (level 5)
#> 2025-06-11 23:21:08.22406: iinla: Evaluate component simplifications (level 3)
#> 2025-06-11 23:21:08.225326: Simplify model components (level 3)
#> 2025-06-11 23:21:08.226671: Simplify component 'x' (level 4)
#> 2025-06-11 23:21:08.236132: Simplify component 'Intercept' (level 4)
#> 2025-06-11 23:21:08.244958: iinla: Evaluate predictor linearisation (level 3)
#> 2025-06-11 23:21:08.257838: iinla: Construct inla stack (level 3)
#> 2025-06-11 23:21:08.289075: iinla: Model initialisation completed (level 3)
#> 2025-06-11 23:21:08.290365: iinla: Iteration 1 [max:1] (level 1)
#> 2025-06-11 23:21:08.987052: bru: Preprocessing (level 1)
#> 2025-06-11 23:21:08.990291: Evaluate component inputs for each observation model (level 3)
#> 2025-06-11 23:21:08.991544: input_eval.bru_comp_list (level 4)
#> 2025-06-11 23:21:08.992741: input_eval.bru_comp(x) (level 4)
#> 2025-06-11 23:21:08.993949: input_eval.bru_input(x) (level 5)
#> 2025-06-11 23:21:09.000378: input_eval.bru_input(x.group) (level 5)
#> 2025-06-11 23:21:09.005376: input_eval.bru_input(x.repl) (level 5)
#> 2025-06-11 23:21:09.010389: input_eval.bru_comp(Intercept) (level 4)
#> 2025-06-11 23:21:09.011616: input_eval.bru_input(Intercept) (level 5)
#> 2025-06-11 23:21:09.016792: input_eval.bru_input(Intercept.group) (level 5)
#> 2025-06-11 23:21:09.02183: input_eval.bru_input(Intercept.repl) (level 5)
#> 2025-06-11 23:21:09.067246: iinla: Start (level 3)
#> 2025-06-11 23:21:09.068426: iinla: Evaluate component linearisations (level 3)
#> 2025-06-11 23:21:09.069657: Linearise components for each observation model (level 3)
#> 2025-06-11 23:21:09.070887: Linearise components (level 5)
#> 2025-06-11 23:21:09.072053: Linearise component 'x' (level 5)
#> 2025-06-11 23:21:09.082435: Linearise component 'Intercept' (level 5)
#> 2025-06-11 23:21:09.091175: iinla: Evaluate component simplifications (level 3)
#> 2025-06-11 23:21:09.09237: Simplify model components (level 3)
#> 2025-06-11 23:21:09.093608: Simplify component 'x' (level 4)
#> 2025-06-11 23:21:09.102729: Simplify component 'Intercept' (level 4)
#> 2025-06-11 23:21:09.117474: iinla: Evaluate predictor linearisation (level 3)
#> 2025-06-11 23:21:09.123232: iinla: Construct inla stack (level 3)
#> 2025-06-11 23:21:09.135587: iinla: Model initialisation completed (level 3)
#> 2025-06-11 23:21:09.1368: iinla: Iteration 1 [max:1] (level 1)
#> 2025-06-11 23:21:09.720218: bru: Preprocessing (level 1)
#> 2025-06-11 23:21:09.72897: Evaluate component inputs for each observation model (level 3)
#> 2025-06-11 23:21:09.730219: input_eval.bru_comp_list (level 4)
#> 2025-06-11 23:21:09.731411: input_eval.bru_comp(z) (level 4)
#> 2025-06-11 23:21:09.732615: input_eval.bru_input(z) (level 5)
#> 2025-06-11 23:21:09.73901: input_eval.bru_input(z.group) (level 5)
#> 2025-06-11 23:21:09.744259: input_eval.bru_input(z.repl) (level 5)
#> 2025-06-11 23:21:09.749412: input_eval.bru_comp(Intercept) (level 4)
#> 2025-06-11 23:21:09.750652: input_eval.bru_input(Intercept) (level 5)
#> 2025-06-11 23:21:09.755907: input_eval.bru_input(Intercept.group) (level 5)
#> 2025-06-11 23:21:09.76111: input_eval.bru_input(Intercept.repl) (level 5)
#> 2025-06-11 23:21:09.806519: iinla: Start (level 3)
#> 2025-06-11 23:21:09.807739: iinla: Evaluate component linearisations (level 3)
#> 2025-06-11 23:21:09.808917: Linearise components for each observation model (level 3)
#> 2025-06-11 23:21:09.810183: Linearise components (level 5)
#> 2025-06-11 23:21:09.8114: Linearise component 'z' (level 5)
#> 2025-06-11 23:21:09.820506: Linearise component 'Intercept' (level 5)
#> 2025-06-11 23:21:09.829098: iinla: Evaluate component simplifications (level 3)
#> 2025-06-11 23:21:09.830281: Simplify model components (level 3)
#> 2025-06-11 23:21:09.831538: Simplify component 'z' (level 4)
#> 2025-06-11 23:21:09.840343: Simplify component 'Intercept' (level 4)
#> 2025-06-11 23:21:09.849081: iinla: Evaluate predictor linearisation (level 3)
#> 2025-06-11 23:21:09.851544: Linearise with respect to component 'z' (level 5)
#> 2025-06-11 23:21:09.856059: Linearise with respect to component 'Intercept' (level 5)
#> 2025-06-11 23:21:09.859113: iinla: Construct inla stack (level 3)
#> 2025-06-11 23:21:09.871914: iinla: Model initialisation completed (level 3)
#> 2025-06-11 23:21:09.873158: iinla: Iteration 1 [max:10] (level 1)
#> 2025-06-11 23:21:10.407219: iinla: Step rescaling: 61.8%, Contract (norm0 = 2076, norm1 = 1910, norm01 = 351.8) (level 3)
#> 2025-06-11 23:21:10.409289: iinla: Step rescaling: 38.2%, Contract (norm0 = 413.9, norm1 = 304.9, norm01 = 351.8) (level 3)
#> 2025-06-11 23:21:10.412046: iinla: Step rescaling: 27.06%, Approx Optimisation (norm0 = 184.8, norm1 = 228.4, norm01 = 351.8) (level 3)
#> 2025-06-11 23:21:10.413383: iinla: |lin1-lin0| = 351.8
#> <eta-lin1,delta>/|delta| = -201.5
#> |eta-lin0 - delta <delta,eta-lin0>/<delta,delta>| = 107.4 (level 4)
#> 2025-06-11 23:21:10.414595: iinla: Step rescaling: 27.1% (norm0 = 184.8, norm1 = 228.4, norm01 = 351.8) (level 2)
#> 2025-06-11 23:21:10.416282: iinla: Evaluate component linearisations (level 3)
#> 2025-06-11 23:21:10.417438: Linearise components for each observation model (level 3)
#> 2025-06-11 23:21:10.418677: Linearise components (level 5)
#> 2025-06-11 23:21:10.419839: Linearise component 'z' (level 5)
#> 2025-06-11 23:21:10.428874: Linearise component 'Intercept' (level 5)
#> 2025-06-11 23:21:10.437677: iinla: Evaluate predictor linearisation (level 3)
#> 2025-06-11 23:21:10.439721: Linearise with respect to component 'z' (level 5)
#> 2025-06-11 23:21:10.443092: Linearise with respect to component 'Intercept' (level 5)
#> 2025-06-11 23:21:10.455958: iinla: Iteration 2 [max:10] (level 1)
#> 2025-06-11 23:21:11.249066: iinla: Step rescaling: 99.54%, Approx Optimisation (norm0 = 227.7, norm1 = 11.96, norm01 = 228.6) (level 3)
#> 2025-06-11 23:21:11.250415: iinla: |lin1-lin0| = 228.6
#> <eta-lin1,delta>/|delta| = -1.246
#> |eta-lin0 - delta <delta,eta-lin0>/<delta,delta>| = 11.89 (level 4)
#> 2025-06-11 23:21:11.251657: iinla: Step rescaling: 99.5% (norm0 = 227.7, norm1 = 11.96, norm01 = 228.6) (level 2)
#> 2025-06-11 23:21:11.253338: iinla: Evaluate component linearisations (level 3)
#> 2025-06-11 23:21:11.254474: Linearise components for each observation model (level 3)
#> 2025-06-11 23:21:11.255661: Linearise components (level 5)
#> 2025-06-11 23:21:11.256794: Linearise component 'z' (level 5)
#> 2025-06-11 23:21:11.265695: Linearise component 'Intercept' (level 5)
#> 2025-06-11 23:21:11.274321: iinla: Evaluate predictor linearisation (level 3)
#> 2025-06-11 23:21:11.276294: Linearise with respect to component 'z' (level 5)
#> 2025-06-11 23:21:11.279556: Linearise with respect to component 'Intercept' (level 5)
#> 2025-06-11 23:21:11.291605: iinla: Max deviation from previous: 47200% of SD, and line search is active
#> [stop if: <10% and line search inactive] (level 1)
#> 2025-06-11 23:21:11.293296: iinla: Iteration 3 [max:10] (level 1)
#> 2025-06-11 23:21:11.833011: iinla: Step rescaling: 162%, Expand (norm0 = 18.8, norm1 = 6.846, norm01 = 11.95) (level 3)
#> 2025-06-11 23:21:11.835113: iinla: Step rescaling: 100%, Overstep (norm0 = 11.74, norm1 = 0.2094, norm01 = 11.95) (level 3)
#> 2025-06-11 23:21:11.83789: iinla: Step rescaling: 101.8%, Approx Optimisation (norm0 = 11.95, norm1 = 0.01917, norm01 = 11.95) (level 3)
#> 2025-06-11 23:21:11.839194: iinla: |lin1-lin0| = 11.95
#> <eta-lin1,delta>/|delta| = -4e-05
#> |eta-lin0 - delta <delta,eta-lin0>/<delta,delta>| = 0.01917 (level 4)
#> 2025-06-11 23:21:11.840406: iinla: Step rescaling: 102% (norm0 = 11.95, norm1 = 0.01917, norm01 = 11.95) (level 2)
#> 2025-06-11 23:21:11.846963: iinla: Evaluate component linearisations (level 3)
#> 2025-06-11 23:21:11.84814: Linearise components for each observation model (level 3)
#> 2025-06-11 23:21:11.849384: Linearise components (level 5)
#> 2025-06-11 23:21:11.850531: Linearise component 'z' (level 5)
#> 2025-06-11 23:21:11.859567: Linearise component 'Intercept' (level 5)
#> 2025-06-11 23:21:11.868146: iinla: Evaluate predictor linearisation (level 3)
#> 2025-06-11 23:21:11.870184: Linearise with respect to component 'z' (level 5)
#> 2025-06-11 23:21:11.873595: Linearise with respect to component 'Intercept' (level 5)
#> 2025-06-11 23:21:11.886063: iinla: Max deviation from previous: 555% of SD, and line search is active
#> [stop if: <10% and line search inactive] (level 1)
#> 2025-06-11 23:21:11.887785: iinla: Iteration 4 [max:10] (level 1)
#> 2025-06-11 23:21:12.417326: iinla: Step rescaling: 162%, Expand (norm0 = 0.03103, norm1 = 0.01185, norm01 = 0.01917) (level 3)
#> 2025-06-11 23:21:12.419331: iinla: Step rescaling: 100%, Overstep (norm0 = 0.01917, norm1 = 1.444e-07, norm01 = 0.01917) (level 3)
#> 2025-06-11 23:21:12.422094: iinla: Step rescaling: 100%, Approx Optimisation (norm0 = 0.01917, norm1 = 1.438e-07, norm01 = 0.01917) (level 3)
#> 2025-06-11 23:21:12.423314: iinla: |lin1-lin0| = 0.01917
#> <eta-lin1,delta>/|delta| = 2.759e-10
#> |eta-lin0 - delta <delta,eta-lin0>/<delta,delta>| = 1.438e-07 (level 4)
#> 2025-06-11 23:21:12.425031: iinla: Evaluate component linearisations (level 3)
#> 2025-06-11 23:21:12.426169: Linearise components for each observation model (level 3)
#> 2025-06-11 23:21:12.427369: Linearise components (level 5)
#> 2025-06-11 23:21:12.428589: Linearise component 'z' (level 5)
#> 2025-06-11 23:21:12.44234: Linearise component 'Intercept' (level 5)
#> 2025-06-11 23:21:12.451114: iinla: Evaluate predictor linearisation (level 3)
#> 2025-06-11 23:21:12.453093: Linearise with respect to component 'z' (level 5)
#> 2025-06-11 23:21:12.456367: Linearise with respect to component 'Intercept' (level 5)
#> 2025-06-11 23:21:12.468677: iinla: Max deviation from previous: 9.69% of SD, and line search is inactive
#> [stop if: <10% and line search inactive] (level 1)
#> 2025-06-11 23:21:12.469855: iinla: Convergence criterion met.
#> Running final INLA integration step with known theta mode. (level 1)
#> 2025-06-11 23:21:12.471551: iinla: Iteration 5 [max:10] (level 1)
#> 2025-06-11 23:21:13.937412: bru: Preprocessing (level 1)
#> 2025-06-11 23:21:13.942928: Evaluate component inputs for each observation model (level 3)
#> 2025-06-11 23:21:13.944163: input_eval.bru_comp_list (level 4)
#> 2025-06-11 23:21:13.945359: input_eval.bru_comp(field) (level 4)
#> 2025-06-11 23:21:13.946599: input_eval.bru_input(field) (level 5)
#> 2025-06-11 23:21:13.953321: input_eval.bru_input(field.group) (level 5)
#> 2025-06-11 23:21:13.95876: input_eval.bru_input(field.repl) (level 5)
#> 2025-06-11 23:21:13.986246: iinla: Start (level 3)
#> 2025-06-11 23:21:13.98744: iinla: Evaluate component linearisations (level 3)
#> 2025-06-11 23:21:13.988663: Linearise components for each observation model (level 3)
#> 2025-06-11 23:21:13.989889: Linearise components (level 5)
#> 2025-06-11 23:21:13.99107: Linearise component 'field' (level 5)
#> 2025-06-11 23:21:14.004848: iinla: Evaluate component simplifications (level 3)
#> 2025-06-11 23:21:14.006081: Simplify model components (level 3)
#> 2025-06-11 23:21:14.007351: Simplify component 'field' (level 4)
#> 2025-06-11 23:21:14.018338: iinla: Evaluate predictor linearisation (level 3)
#> 2025-06-11 23:21:14.021438: iinla: Construct inla stack (level 3)
#> 2025-06-11 23:21:14.032059: iinla: Model initialisation completed (level 3)
#> 2025-06-11 23:21:14.033329: iinla: Iteration 1 [max:1] (level 1)
#> 2025-06-11 23:21:16.679668: input_eval.bru_comp_list (level 4)
#> 2025-06-11 23:21:21.056999: bru: Preprocessing (level 1)
#> 2025-06-11 23:21:21.064682: Evaluate component inputs for each observation model (level 3)
#> 2025-06-11 23:21:21.065915: input_eval.bru_comp_list (level 4)
#> 2025-06-11 23:21:21.067115: input_eval.bru_comp(x) (level 4)
#> 2025-06-11 23:21:21.068329: input_eval.bru_input(x) (level 5)
#> 2025-06-11 23:21:21.075416: input_eval.bru_input(x.group) (level 5)
#> 2025-06-11 23:21:21.081041: input_eval.bru_input(x.repl) (level 5)
#> 2025-06-11 23:21:21.086567: input_eval.bru_comp_list (level 4)
#> 2025-06-11 23:21:21.087809: input_eval.bru_comp(x) (level 4)
#> 2025-06-11 23:21:21.089: input_eval.bru_input(x) (level 5)
#> 2025-06-11 23:21:21.094581: input_eval.bru_input(x.group) (level 5)
#> 2025-06-11 23:21:21.100257: input_eval.bru_input(x.repl) (level 5)
#> 2025-06-11 23:21:21.127928: iinla: Start (level 3)
#> 2025-06-11 23:21:21.129154: iinla: Evaluate component linearisations (level 3)
#> 2025-06-11 23:21:21.13034: Linearise components for each observation model (level 3)
#> 2025-06-11 23:21:21.131654: Linearise components (level 5)
#> 2025-06-11 23:21:21.132904: Linearise component 'x' (level 5)
#> 2025-06-11 23:21:21.144243: Linearise components (level 5)
#> 2025-06-11 23:21:21.145493: Linearise component 'x' (level 5)
#> 2025-06-11 23:21:21.161486: iinla: Evaluate component simplifications (level 3)
#> 2025-06-11 23:21:21.16275: Simplify model components (level 3)
#> 2025-06-11 23:21:21.164012: Simplify component 'x' (level 4)
#> 2025-06-11 23:21:21.173259: Simplify component 'x' (level 4)
#> 2025-06-11 23:21:21.182339: iinla: Evaluate predictor linearisation (level 3)
#> 2025-06-11 23:21:21.188683: iinla: Construct inla stack (level 3)
#> 2025-06-11 23:21:21.203519: iinla: Model initialisation completed (level 3)
#> 2025-06-11 23:21:21.204722: iinla: Iteration 1 [max:1] (level 1)