Learn R Programming

SpaDES.core (version 3.2.1)

.restartResolveSim: Resolve the sim argument for the restart functions

Description

Shared preamble of restartSpades() and restartSimInit(): announce the experimental status, default a missing sim to the stashed savedSimEnv()$.sim, load it from disk if a filename was given, and assert it is a simList.

Usage

.restartResolveSim(sim, verbose)

Value

A simList.

Arguments

sim

NULL, a filename, or a simList (as passed to the restart functions).

verbose

Numeric verbosity, passed to messageVerbose().