A helper function
run.control(check_tpl = TRUE, write_files = TRUE, checkparam = c("stop",
"warn", "write", "ignore"), checkdata = c("stop", "warn", "write",
"ignore"), compile = TRUE, run = TRUE, read_files = TRUE,
clean_files = "all")
A list with appropriate default values inserted for passing to
do_admb
Check the specified TPL file for problems?
Write out data and initialization files?
How to check PARAMETERS
section of the TPL file:
stop
=stop if there are problems; warn
=give a warning if there
are problems, but try to proceed; write
=modify TPL file, writing
appropriate sections; ignore
=assume TPL file is OK, proceed
as with checkparam
: how/whether to check/generate the
DATA
section of the TPL file
compile the TPL file (via ADMB) into an executable?
run the executable file with the specified data/initial values?
read the results of an ADMB run into R?
Delete working files after completion of the run? Options
are "all"
, "sys"
, "output"
, "none"
; TRUE
is equivalent to "all"
and FALSE
is equivalent to "none"
Ben Bolker