This function initializes gadget using a given string vector argument. This is equivalent to running gadget from the command line. Please change the working directory (e.g., by setwd)to the model directory before calling this function. Must be followed by initSim

gadget(args)

Arguments

args

A vector of string arguments

See also

initGadget for the recommended way to initialize gadget.

Examples

if (FALSE) { if(interactive()){ exPath <- loadExample() setwd(exPath) gadget(c("-s", "-main", "main", "-i", "refinputfile")) initSim() } }