Picks the module to re-parse(), most-reliable source first: (1) the most-recent
recovery snapshot in sim$.recoverableObjs (the interrupted module), (2) sim@current
(set while a module event is running), then (3) the first still-queued event's module
(optionally restricted to eventType, e.g. ".inputObjects") -- mirroring
restartSpades()'s use of events(sim). (3) is the fallback when .recoverableObjs
is empty, e.g. a cached earlier .inputObjects swapped sim@.xData and orphaned the
recovery accumulator.
.restartModuleToReparse(
sim,
recoverNames = names(sim$.recoverableObjs),
eventType = NULL
)A single module name, or NULL if none can be identified.
A simList.
Character names of sim$.recoverableObjs (most-recent first).
Optional event type to which the queued-event fallback is restricted.