
Call the simulator for one parameter set, naming it if it fails
Source:R/simulator.R
call_sim_once.Rdas_sim_draw() reports everything wrong with a simulator's return value
and names the simulation it came from. A failure inside the simulator
happens before there is a return value, so on its own it arrives as bare as
R left it: argument "ls" is missing, with no default, with no index, no
parameters, and nothing to suggest that the real problem is a dispatch
mismatch rather than a missing default. Under a future plan the call
crosses a worker boundary first, which is where a useful traceback goes.
Arguments
- call_one
The closure from
simulator_caller().- theta_i
One parameter set.
- i
Index of the simulation, for the error message.