Function used when updating and releasing a new version of GMACS. It allows to copy and paste all the GMACS files (for one or several stocks) resulting from the Development version from this directory to the Latest_Version directory.
UpdateGMACS(
dirSrc = NULL,
dirNew = NULL,
dir_Assdata = NULL,
dir_Supp = NULL,
ADMBpaths = NULL,
Update_LastAss_file = TRUE,
UpdateLast_GmacsVer = TRUE,
stock = "all",
verbose = FALSE,
cleanStockFolder = FALSE,
cleanInputFiles = FALSE,
cleanTest = FALSE
)
(path)- This is the path to the folder that has been
used to develop the new version of GMACS. Typically, this corresponds to the path
to the Testing_Versions
folder, if following the basic workflow to
update/upgrade GMACS.
(path)- This is the path to the folder that will hold
the latest version of GMACS after the check steps. Typically, this corresponds
to the path to the Latest_Version
folder, if following the basic workflow
to update/upgrade GMACS.
(path)- This is the path to the folder holding the assessment
files for each stock. If following the basic workflow to update/upgrade GMACS,
this is the Assessment_data
fodler, where the stock-specific input files
used to run the last version of Gmacs are saved.
(filepath): path to the repertory holding the file defining
required ADMB paths. By default (ADMBpaths = NULL
), the function will
look for that file in the relative folder of the dirNew
repertory. See
the details section for more information about this ADMB files
.
(logical)- If true, the stock-specific input files
will be copy to the dir_Assdata
. Since this folder is intended to hold
the last available input file for each stock, this argument is set as
Update_LastAss_file = TRUE
by default.
(logical)- Because the development version is ran
using a .pin file and no estimation, this flag allows to update the last
version folder (dirNew
) by runing Gmacs with estimation. Default,
UpdateLast_GmacsVer = TRUE
(character string; vector)- Stock input file folder names to be
copied. If set as "all"
(default), then the function will consider the names of
the stock in the dirNew
repertory (under the folder build
).
(logical)- flag to print processing information. Default,
verbose = FALSE
.
(logical)- flag to delete stock-specific subfolders in
the dirSrc
folder.
(logical)- flag to delete the Gmacs version specific
input files folder in the relative repertory of the dirSrc
folder.
(logical)- floag to delete the dirSrc
folder.
(path; vector)- Optional. This argument can be used to copy both
the Gmacs codes and the stock-specific input files in to one/multiple directories
(different from dirNew
and dir_Assdata
, if applicable).
Copy both the Gmacs codes and the stock-specific input files from the development folder to:
dirNew
the folder holding the last available/stable version of Gmacs;
dir_Assdata
the folder holding the last available stock-specific input files in terms of Gmacs version (Gmacs code are not copied in to that folder);
The function creates the GMACS_Version_details.txt
file that gives
details about the version of GMACS that is updating, including the last
implementations.
All in the stock-specific input files are updated with the Gmacs version numder. The .TPL file is also updated with the specification of the implementations made during the developement of this new version of Gmacs.
if a build
folder exists in the directory(ies) where the
stock assessment files have to be copied, then it will be used as the folder
to save the output of the stock-specific runs.
The ADMBpaths
refers to the repertory that holds either the
"ADpaths_Windows.txt" file for the windows machine or the "ADpaths_MacOS.txt"
file for Mac. The function automatically detect which machine you are working
on.