Learn R Programming

EpiModel (version 2.5.0)

netsim_error_logger: Handle the Logging of Traceback and Dumping of Frames on Error

Description

If control$.traceback.on.error == TRUE, this function prints the traceback of the current simulation to STDIN. This is useful when ncores > 1 or in HPC settings. If control$.dump.frames.on.error == TRUE, this function saves a debugging dump for "postmortem debugging". The dumps are named "dump_%Y%m%d_%H%M%S_s.rda" and stored at the root of the working directory.

Usage

netsim_error_logger(dat, s)

Value

Nothing, after logging and dumping frames, the function gives the control back to the general error handler

Arguments

dat

Main netsim_dat object containing a networkDynamic object and other initialization information passed from netsim.

s

The number of the simulation that failed