Checks that a restart pool (a directory made by make_restart_pool, holding
a pool_index.csv) can be used by netsim_path_wrapper. This function is
not called by the simulation functions: call it after making a pool, or
before starting a long run from it.
Value
A data.frame with one row per pool element (invisibly):
pool_num, file_path, n_runs, nsteps (the number of time steps
kept in the element, 1 for a pool made by make_restart_pool()) and
epimodel_version.
Details
Errors are raised when:
pathis a directory without apool_index.csv, or itspool_index.csvhas nopool_numorepimodel_versioncolumn, or does not number the elements1toN;an element listed in
pool_index.csvhas no<pool_num>.rdsfile;an element is not a single simulation
netsimrestart point with the elements needed to restart (param,control,nwparam,epi,run,coef.formandnum.nw);an element was made with another major.minor version of EpiModel than the one installed, according to
pool_index.csv(checked bynetsim_path_wrapperbefore running) or to the element itself (checked bynetsim). Run this function with the EpiModel version the simulations will use (e.g. in the HPCrenv);the elements do not all hold the same number of time steps:
netsimrequirescontrol$startto be that number + 1 for each of them.
Warnings are raised when:
the pool directory holds
<n>.rdsfiles not listed inpool_index.csv, which are never used;pathis a single file holding several simulations:netsim_path_wrapperrestarts every replicate from its first simulation.