I would like to run testJob() and drop to the debugger as soon as an error is thrown. However, the following prevents me from just having options(error=recover) do its work:
Maybe you could make this line dependent on some setting, e.g. have an option(error.execjob) or something (default function(e) traceback(2L)) and then do
I would like to run
testJob()
and drop to the debugger as soon as an error is thrown. However, the following prevents me from just havingoptions(error=recover)
do its work:https://github.com/mllg/batchtools/blob/4c2a476725452e742ed59b9a45457723cd398ab2/R/execJob.R#L50-L51
Maybe you could make this line dependent on some setting, e.g. have an
option(error.execjob)
or something (defaultfunction(e) traceback(2L)
) and then do(btw, it would probably also be cleaner to have the
on.exi()
happen before theoptions(error = ...)
call).