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(
  DirFold = NULL,
  .nameFold = "Dvpt_Version",
  .nameVer = NULL,
  ADMBpaths = NULL,
  verbose = FALSE,
  logFiles = FALSE
)

Arguments

DirFold

(character string)- Path to the folder where the ADMBpaths file is hosted and where the development folder (i.e., the one containing the .TPL file for the development version is located. If DirFold = NULL, then the function will assume that this "development" folder indicated in .nameFold can be accessed from the current working directory.

.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.