Function used when updating and releasing a new version of GMACS. It uses the `write_TPL` function to create a new gmacs.tpl file from the gmacsbase.tpl and personal.TPL files, compiles the model and uses the `.buildGMACS()` function to provide a new executable.

.GetGmacsExe(
  .nameFold = "Dvpt_Version",
  .nameVer = NULL,
  ADMBpaths = NULL,
  verbose = FALSE,
  logFiles = FALSE
)

Arguments

.nameFold

(character string); name of the subfolder holding the development version you want to work on. The default is `Dvpt_Version` but you can have renamed this folder.

.nameVer

(character string); name of the development version of GMACS you are going to work on. Default: `Dvpt_Version`.

ADMBpaths

(filepath): absolute or relative to current working directory path to file defining required ADMB paths. The default is `NULL`.

verbose

(TRUE/FALSE); flag to print processing information.

logFiles

(TRUE/FALSE); flag to create PBSadmb log files.

Value

the new GMACS executable for the development version you are working on.

Details

This function assumes you are calling it from the parent folder to that identified by .nameFold. In the course of creating the executable of a development version of GMACS, the working directory is switched to .nameFold, but switched back to the parent folder when the function exits.